From d87a313679b757dacabfd5b20a6d4e00f77522ca Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 8 Nov 2015 18:52:14 -0800 Subject: [PATCH] Need to set thread ID for native Flash embedding here since native Main.init crashes. --- src/Miscellaneous/Flash.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Miscellaneous/Flash.coffee b/src/Miscellaneous/Flash.coffee index 7f9084832..22f98ac08 100644 --- a/src/Miscellaneous/Flash.coffee +++ b/src/Miscellaneous/Flash.coffee @@ -7,4 +7,6 @@ Flash = 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()