4chan-x/src/Miscellaneous/Flash.coffee
ccd0 d69e6d996d Revert "Don't call Flash embedding until after parsing."
Broke Flash embedding on /f/ index.
This reverts commit 482426499ca5e760ed1a697dc60a505904157264.
2016-04-30 10:07:45 -07:00

15 lines
423 B
CoffeeScript

Flash =
init: ->
if g.BOARD.ID is 'f' and Conf['Enable Native Flash Embedding']
$.ready Flash.initReady
initReady: ->
if $.hasStorage
$.global -> window.SWFEmbed.init() if JSON.parse(localStorage['4chan-settings'] or '{}').disableAll
else
if g.VIEW is 'thread'
$.global -> window.Main.tid = location.pathname.split(/\/+/)[3]
$.global -> window.SWFEmbed.init()
return Flash