diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index f97f7b1fb..7c827d710 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -7720,7 +7720,9 @@ } return $.asap((function() { if (isVideo) { - return el.videoHeight || el.naturalHeight; + return el.videoHeight; + } else { + return el.naturalHeight; } }), function() { return ImageExpand.completeExpand(post); diff --git a/builds/crx/script.js b/builds/crx/script.js index cee0578fd..7fb7af5a1 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -7739,7 +7739,9 @@ } return $.asap((function() { if (isVideo) { - return el.videoHeight || el.naturalHeight; + return el.videoHeight; + } else { + return el.naturalHeight; } }), function() { return ImageExpand.completeExpand(post); diff --git a/src/Images/ImageExpand.coffee b/src/Images/ImageExpand.coffee index 6d8c97fd3..53978a8c6 100755 --- a/src/Images/ImageExpand.coffee +++ b/src/Images/ImageExpand.coffee @@ -117,7 +117,7 @@ ImageExpand = el.src = src or post.file.URL position = if isVideo and Conf['Show Controls'] then thumb.parentNode else thumb $.after position, el unless el is position.nextSibling - $.asap (-> if isVideo then el.videoHeight or el.naturalHeight), -> + $.asap (-> if isVideo then el.videoHeight else el.naturalHeight), -> ImageExpand.completeExpand post completeExpand: (post) ->