Fix missing check of '404 Redirect' preference.

This commit is contained in:
ccd0 2015-07-19 19:02:51 -07:00
parent 1cc0547017
commit 5c3417c6b7

View File

@ -75,7 +75,7 @@ Main =
when 'sys.4chan.org'
Report.init()
PostSuccessful.init() if g.VIEW is 'post'
if /\/imgboard\.php$/.test(location.pathname) and (match = location.search.match /\bres=(\d+)/)
if Conf['404 Redirect'] and /\/imgboard\.php$/.test(location.pathname) and (match = location.search.match /\bres=(\d+)/)
$.ready ->
if $.id('errmsg')?.textContent is 'Error: Specified thread does not exist.'
Redirect.navigate 'thread',