From d9fc65fe05f534691597586f25a2f168364ae1cf Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 17 Mar 2021 18:58:04 +0100 Subject: cancel playback if background audio id changes --- frontend/app/views/page/components/tile.handle.js | 35 +++++++---------------- 1 file changed, 10 insertions(+), 25 deletions(-) (limited to 'frontend/app/views/page/components/tile.handle.js') diff --git a/frontend/app/views/page/components/tile.handle.js b/frontend/app/views/page/components/tile.handle.js index 090069d..d7b5d05 100644 --- a/frontend/app/views/page/components/tile.handle.js +++ b/frontend/app/views/page/components/tile.handle.js @@ -94,31 +94,16 @@ const TileHandle = ({ tile, bounds, box, viewing, onMouseDown, onDoubleClick }) content = "SCRIPT" } } - if (viewing && tile.href) { - if (tile.href.indexOf('http') === 0) { - return ( - -
- {content} -
-
- ) - } else { - return ( - -
- {content} -
- - ) - } + if (viewing) { + return ( +
+ {content} +
+ ) } else { return (