Fix anti-autoplay regression causing some videos not to show up.

This commit is contained in:
ccd0 2018-03-23 12:40:00 -07:00
parent 739785f7a5
commit 211dd1839f

View File

@ -29,5 +29,5 @@ AntiAutoplay =
processVideo: (el, attr) ->
el[attr] = el[attr].replace(/\?autoplay=1&?/, '?').replace('&autoplay=1', '')
el.style.display = 'block' if window.getComputedStyle(el).display is 'hidden'
el.style.display = 'block' if window.getComputedStyle(el).display is 'none'
$.addClass el, 'autoplay-removed'