Don't call Flash embedding until after parsing.

This commit is contained in:
ccd0 2016-04-28 09:17:25 -07:00
parent 6dd281ba64
commit 482426499c

View File

@ -1,9 +1,11 @@
Flash =
init: ->
if g.BOARD.ID is 'f' and Conf['Enable Native Flash Embedding']
$.ready Flash.initReady
Callbacks.Thread.push
name: 'Flash Embedding'
cb: @node
initReady: ->
node: ->
if $.hasStorage
$.global -> window.SWFEmbed.init() if JSON.parse(localStorage['4chan-settings'] or '{}').disableAll
else