Fix videos not being prefetched properly by prefetch button. #2601

This commit is contained in:
ccd0 2020-05-24 10:19:37 -07:00
parent dd4efa6bca
commit 2516a61233

View File

@ -73,6 +73,7 @@ ImageLoader =
return
el = $.el if isImage then 'img' else 'video'
el.preload = 'auto' if isVideo
if replace and isImage
$.on el, 'load', ->
clone.file.thumb.src = url for clone in post.clones