13 lines
409 B
CoffeeScript
13 lines
409 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()
|