From e2d9afb3bbd588a3bc5239c3fe126cf087b832af Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 19 Jul 2014 23:15:11 -0700 Subject: [PATCH] better useragent detection for CSS workarounds This way gets it right when Tampermonkey is used. --- src/General/Main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 55690ea53..8760c7b86 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -85,7 +85,7 @@ Main = return if !Main.isThisPageLegit() or $.hasClass doc, 'fourchan-x' # disable the mobile layout $('link[href*=mobile]', d.head)?.disabled = true - $.addClass doc, 'fourchan-x', 'seaweedchan', g.VIEW, '<% if (type === 'crx') { %>blink<% } else { %>gecko<% } %>' + $.addClass doc, 'fourchan-x', 'seaweedchan', g.VIEW, if chrome? then 'blink' else 'gecko' $.addStyle Main.css Main.setClass()