Fix bug in Replace [filetype] features from v1.14.12.4.

This commit is contained in:
ccd0 2019-08-15 22:12:20 -07:00
parent 27a6e7251e
commit 091db570d8

View File

@ -1,8 +1,8 @@
ImageLoader =
init: ->
return unless g.VIEW in ['index', 'thread', 'archive']
return unless Conf['Image Prefetching'] or
(replace = Conf['Replace JPG'] or Conf['Replace PNG'] or Conf['Replace GIF'] or Conf['Replace WEBM'])
replace = Conf['Replace JPG'] or Conf['Replace PNG'] or Conf['Replace GIF'] or Conf['Replace WEBM']
return unless Conf['Image Prefetching'] or replace
Callbacks.Post.push
name: 'Image Replace'