remove contracted images as we do videos
This commit is contained in:
parent
72e76501d0
commit
019ac7d5c3
@ -137,10 +137,9 @@ ImageExpand =
|
||||
$.off el, 'error', ImageExpand.error
|
||||
if file.isVideo
|
||||
el.pause()
|
||||
TrashQueue.add el, post
|
||||
for eventName, cb of ImageExpand.videoCB
|
||||
$.off el, eventName, cb
|
||||
return
|
||||
TrashQueue.add el, post
|
||||
|
||||
expand: (post, src) ->
|
||||
# Do not expand images of hidden/filtered replies, or already expanded pictures.
|
||||
|
||||
@ -41,7 +41,7 @@ ImageHover =
|
||||
cb: ->
|
||||
if isVideo
|
||||
el.pause()
|
||||
TrashQueue.add el, post
|
||||
TrashQueue.add el, post
|
||||
el.removeAttribute 'id'
|
||||
$.queueTask -> delete file.isHovered
|
||||
error: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user