Fix "Replace X" images being loaded on posts being inserted into catalog.
Fixes bug from 9cee88ce3a9676adb999b6fc2536716a7e8debfb.
This commit is contained in:
parent
f25f192627
commit
8f216f59b0
@ -57,6 +57,7 @@ ImageLoader =
|
||||
type = if (match = url.match(/\.([^.]+)$/)[1].toUpperCase()) is 'JPEG' then 'JPG' else match
|
||||
replace = Conf["Replace #{type}"] and !/spoiler/.test(thumb.src or thumb.dataset.src)
|
||||
return unless replace or Conf['prefetch']
|
||||
return if $.hasClass doc, 'catalog-mode'
|
||||
return unless [post, post.clones...].some (clone) -> doc.contains clone.nodes.root
|
||||
file.isPrefetched = true
|
||||
if file.videoThumb
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user