remove duplicated loop
This commit is contained in:
parent
014af473f4
commit
b7be5b7a01
@ -67,7 +67,6 @@ ImageLoader =
|
|||||||
return unless [post, post.clones...].some (clone) -> doc.contains clone.nodes.root
|
return unless [post, post.clones...].some (clone) -> doc.contains clone.nodes.root
|
||||||
file.isPrefetched = true
|
file.isPrefetched = true
|
||||||
if file.videoThumb
|
if file.videoThumb
|
||||||
for clone in [post, post.clones...]
|
|
||||||
clone.file.thumb.preload = 'auto' for clone in post.clones
|
clone.file.thumb.preload = 'auto' for clone in post.clones
|
||||||
thumb.preload = 'auto'
|
thumb.preload = 'auto'
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user