aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/media.js
diff options
context:
space:
mode:
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);