diff options
Diffstat (limited to 'app/src/main/assets/js/media.min.js')
-rw-r--r-- | app/src/main/assets/js/media.min.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/app/src/main/assets/js/media.min.js b/app/src/main/assets/js/media.min.js index c965f515..767b8a36 100644 --- a/app/src/main/assets/js/media.min.js +++ b/app/src/main/assets/js/media.min.js @@ -1,20 +1,20 @@ if(!window.hasOwnProperty("frost_media")){ console.log("Registering frost_media"), window.frost_media=!0 -;var _frostMediaClick=function(t){ -var e=t.target||t.srcElement -;if(e.hasAttribute("data-sigil")&&e.getAttribute("data-sigil").includes("playInlineVideo")&&(console.log("Found inline video"), -e=e.parentNode, -e.hasAttribute("data-store"))){ +;var _frostMediaClick=function(e){ +var t=e.target||e.srcElement +;if(t.hasAttribute("data-sigil")&&t.getAttribute("data-sigil").toLowerCase().includes("inlinevideo")&&(console.log("Found inline video"), +t=t.parentNode, +t.hasAttribute("data-store"))){ var i ;try{ -i=JSON.parse(e.getAttribute("data-store")) -}catch(t){ +i=JSON.parse(t.getAttribute("data-store")) +}catch(e){ return } -i.src&&(console.log("Inline video",i.src),"undefined"!=typeof Frost&&Frost.loadVideo(i.src), -t.stopPropagation(), -t.preventDefault()) +i.src&&(console.log("Inline video "+i.src),"undefined"!=typeof Frost&&Frost.loadVideo(i.src,i.animatedGifVideo), +e.stopPropagation(), +e.preventDefault()) } } ;document.addEventListener("click",_frostMediaClick,!0) |