Don't try to run inside MathJax popups. #1007
This commit is contained in:
parent
225edbc2ed
commit
4a080b2d3b
@ -17,6 +17,9 @@ Main =
|
|||||||
try
|
try
|
||||||
return if window.frameElement and window.frameElement.src is ''
|
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
|
# Detect multiple copies of 4chan X
|
||||||
$.on d, '4chanXInitFinished', ->
|
$.on d, '4chanXInitFinished', ->
|
||||||
if Main.expectInitFinished
|
if Main.expectInitFinished
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user