From cb333b3cc19f8f46dcf128316d9c4540b30579a8 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 25 Sep 2016 00:34:19 -0700 Subject: [PATCH] Fix 4chan X not running on images in their own tabs. Fixes bug from 4a080b2d3ba09dd9af9f88258682d84060b7028c. --- src/main/Main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Main.coffee b/src/main/Main.coffee index 5d1066fdb..a4398d9bf 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -18,7 +18,7 @@ Main = return if window.frameElement and window.frameElement.src is '' # Don't run inside MathJax popups. - return if d.documentElement and not d.doctype + return if location.hostname is 'boards.4chan.org' and d.documentElement and not d.doctype # Detect multiple copies of 4chan X $.on d, '4chanXInitFinished', ->