aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/media.js
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.js
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.js')
-rw-r--r--app/src/main/assets/js/media.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/src/main/assets/js/media.js b/app/src/main/assets/js/media.js
index 5b1a3776..e8bf8a72 100644
--- a/app/src/main/assets/js/media.js
+++ b/app/src/main/assets/js/media.js
@@ -1,10 +1,9 @@
-"use strict";
-
-(function () {
+// Generated by CoffeeScript 2.3.2
+(function() {
// we will handle media events
var _frostMediaClick;
- _frostMediaClick = function _frostMediaClick(e) {
+ _frostMediaClick = function(e) {
var dataStore, element, i, ref, url;
element = e.target || e.srcElement;
if (!(element != null ? (ref = element.dataset.sigil) != null ? ref.toLowerCase().includes("inlinevideo") : void 0 : void 0)) {
@@ -27,7 +26,7 @@
if (!url || !url.startsWith("http")) {
return;
}
- console.log("Inline video " + url);
+ console.log(`Inline video ${url}`);
if (typeof Frost !== "undefined" && Frost !== null ? Frost.loadVideo(url, dataStore.animatedGifVideo) : void 0) {
e.stopPropagation();
e.preventDefault();
@@ -35,4 +34,5 @@
};
document.addEventListener("click", _frostMediaClick, true);
-}).call(undefined); \ No newline at end of file
+
+}).call(this);