diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index d5fb8a0b2..16c89af6a 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -7495,8 +7495,8 @@ return this.setThumbnail(); }; - _Class.prototype.setThumbnail = function(el) { - var fileURL, isVideo; + _Class.prototype.setThumbnail = function() { + var el, fileURL, isVideo; isVideo = /^video\//.test(this.file.type); el = $.el((isVideo ? 'video' : 'img')); $.on(el, (isVideo ? 'loadeddata' : 'load'), (function(_this) { diff --git a/builds/crx/script.js b/builds/crx/script.js index 56b8a44aa..39773e6f4 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -7536,8 +7536,8 @@ return this.setThumbnail(); }; - _Class.prototype.setThumbnail = function(el) { - var fileURL, isVideo; + _Class.prototype.setThumbnail = function() { + var el, fileURL, isVideo; isVideo = /^video\//.test(this.file.type); el = $.el((isVideo ? 'video' : 'img')); $.on(el, (isVideo ? 'loadeddata' : 'load'), (function(_this) { diff --git a/src/Posting/QR.post.coffee b/src/Posting/QR.post.coffee index ad6c38cdc..3ce11883c 100644 --- a/src/Posting/QR.post.coffee +++ b/src/Posting/QR.post.coffee @@ -171,7 +171,7 @@ QR.post = class return @setThumbnail() - setThumbnail: (el) -> + setThumbnail: -> # Create a redimensioned thumbnail. isVideo = /^video\//.test @file.type el = $.el (if isVideo then 'video' else 'img')