aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/media.coffee
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-02-02 00:39:48 -0500
committerAllan Wang <me@allanwang.ca>2019-02-02 00:39:48 -0500
commitc484c2728c1688ed695205a420eba3f2b2ba179d (patch)
tree045f471346aadb43a757389b9d39648d3ed39818 /app/src/main/assets/js/media.coffee
parent459359672b1f4266bc0f009c35f246fd90cce36a (diff)
downloadfrost-c484c2728c1688ed695205a420eba3f2b2ba179d.tar.gz
frost-c484c2728c1688ed695205a420eba3f2b2ba179d.tar.bz2
frost-c484c2728c1688ed695205a420eba3f2b2ba179d.zip
Add checks to fast fail menu
Diffstat (limited to 'app/src/main/assets/js/media.coffee')
-rw-r--r--app/src/main/assets/js/media.coffee3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/assets/js/media.coffee b/app/src/main/assets/js/media.coffee
index a15a5279..e9b20ec8 100644
--- a/app/src/main/assets/js/media.coffee
+++ b/app/src/main/assets/js/media.coffee
@@ -1,6 +1,5 @@
# we will handle media events
_frostMediaClick = (e) ->
-
element = e.target or e.srcElement
if !element?.dataset.sigil?.toLowerCase().includes("inlinevideo")
return
@@ -27,4 +26,4 @@ _frostMediaClick = (e) ->
e.preventDefault()
return
-document.addEventListener "click", _frostMediaClick, true \ No newline at end of file
+document.addEventListener "click", _frostMediaClick, true