summaryrefslogtreecommitdiff
path: root/frontend/views/page/components/tile.handle.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-11 17:32:46 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-11 17:32:46 +0200
commitc2f2d222ebeee0862bdeb54e49b86c3c5cd14ee3 (patch)
treee395222cd0ea6139ccb69d2052368e523421603c /frontend/views/page/components/tile.handle.js
parent88b5644a6c2594887d6f99f1cad72a1b58d60fe4 (diff)
handling links... in the handle... literally
Diffstat (limited to 'frontend/views/page/components/tile.handle.js')
-rw-r--r--frontend/views/page/components/tile.handle.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/frontend/views/page/components/tile.handle.js b/frontend/views/page/components/tile.handle.js
index 33243a7..9212dbb 100644
--- a/frontend/views/page/components/tile.handle.js
+++ b/frontend/views/page/components/tile.handle.js
@@ -70,15 +70,13 @@ const TileHandle = ({ tile, bounds, box, viewing, onMouseDown, onDoubleClick })
if (viewing && tile.href) {
if (tile.href.indexOf('http') === 0) {
return (
- <a href={tile.href} rel='noopener'>
- <div
- className={className}
- onMouseDown={onMouseDown}
- style={style}
- >
- {content}
- </div>
- </a>
+ <div
+ className={className}
+ style={style}
+ onClick={() => window.open(tile.href, '_blank')}
+ >
+ {content}
+ </div>
)
} else {
return (