diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index a5c68338f..2575af6a5 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -11365,7 +11365,9 @@ var enabled; enabled = Conf['prefetch'] = this.checked; if (enabled) { - g.BOARD.posts.forEach(ImageLoader.node.call); + g.BOARD.posts.forEach(function(post) { + return ImageLoader.node.call(post); + }); } } }; diff --git a/builds/crx/script.js b/builds/crx/script.js index 6b96467f3..8f1670c99 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -11380,7 +11380,9 @@ var enabled; enabled = Conf['prefetch'] = this.checked; if (enabled) { - g.BOARD.posts.forEach(ImageLoader.node.call); + g.BOARD.posts.forEach(function(post) { + return ImageLoader.node.call(post); + }); } } }; diff --git a/src/Images/ImageLoader.coffee b/src/Images/ImageLoader.coffee index e9b638b20..3d2bc850b 100755 --- a/src/Images/ImageLoader.coffee +++ b/src/Images/ImageLoader.coffee @@ -64,5 +64,5 @@ ImageLoader = toggle: -> enabled = Conf['prefetch'] = @checked if enabled - g.BOARD.posts.forEach ImageLoader.node.call + g.BOARD.posts.forEach (post) -> ImageLoader.node.call post return \ No newline at end of file