Don't try to run inside MathJax popups. #1007

This commit is contained in:
ccd0 2016-07-07 16:01:33 -07:00
parent 225edbc2ed
commit 4a080b2d3b

View File

@ -17,6 +17,9 @@ Main =
try
return if window.frameElement and window.frameElement.src is ''
# Don't run inside MathJax popups.
return if d.documentElement and not d.doctype
# Detect multiple copies of 4chan X
$.on d, '4chanXInitFinished', ->
if Main.expectInitFinished