Also fix error when browsing from www.4chan.org/frames.

Fixes regression from 59bac43afb725c0960d6a40c6847489f3c09a43c.
This commit is contained in:
ccd0 2016-06-05 14:39:44 -07:00
parent 12109375b5
commit 452dcb9852

View File

@ -14,7 +14,8 @@ Main =
return
# Don't run inside ad iframes.
return if window.frameElement and window.frameElement.src is ''
try
return if window.frameElement and window.frameElement.src is ''
# Detect multiple copies of 4chan X
$.on d, '4chanXInitFinished', ->