Initial attempt at implementing 404 redirection when 4chan is down

http://github.com/zixaphir/appchan-x/issues/394
This commit is contained in:
Zixaphir 2013-08-08 20:25:36 -07:00
parent 3429708725
commit 191dc4911f
3 changed files with 3 additions and 3 deletions

View File

@ -10314,7 +10314,7 @@
$.ready(function() {
var URL;
if (Conf['404 Redirect'] && d.title === '4chan - 404 Not Found') {
if (Conf['404 Redirect'] && ['4chan - Temporarily Offline', '4chan - 404 Not Found'].contains(d.title)) {
Redirect.init();
pathname = location.pathname.split('/');
URL = Redirect.to('file', {

View File

@ -10298,7 +10298,7 @@
$.ready(function() {
var URL;
if (Conf['404 Redirect'] && d.title === '4chan - 404 Not Found') {
if (Conf['404 Redirect'] && ['4chan - Temporarily Offline', '4chan - 404 Not Found'].contains(d.title)) {
Redirect.init();
pathname = location.pathname.split('/');
URL = Redirect.to('file', {

View File

@ -48,7 +48,7 @@ Main =
return
when 'images.4chan.org'
$.ready ->
if Conf['404 Redirect'] and d.title is '4chan - 404 Not Found'
if Conf['404 Redirect'] and ['4chan - Temporarily Offline', '4chan - 404 Not Found'].contains d.title
Redirect.init()
pathname = location.pathname.split '/'
URL = Redirect.to 'file',