From ebfa224fe377b5a2795402d8840cc81a106ee47a Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sun, 12 May 2013 23:56:50 +0200 Subject: [PATCH] Actually, let's keep listening to 4chanMainInit, it guarantees that we don't get FOUC'd on the index/in threads. --- src/General/Main.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 9cb8663b2..10bf5ebd5 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -18,6 +18,7 @@ Main = Conf['archives'] = Redirect.archives $.get Conf, Main.initFeatures + $.on d, '4chanMainInit', Main.initStyle $.asap (-> d.head and $('link[rel="shortcut icon"]', d.head) or d.readyState in ['interactive', 'complete']), Main.initStyle @@ -119,7 +120,8 @@ Main = $.ready Main.initReady initStyle: -> - return unless Main.isThisPageLegit() + $.off d, '4chanMainInit', Main.initStyle + return if !Main.isThisPageLegit() or $.hasClass doc, 'fourchan-x' # disable the mobile layout $('link[href*=mobile]', d.head)?.disabled = true <% if (type === 'crx') { %>