Initial attempt at implementing 404 redirection when 4chan is down
http://github.com/zixaphir/appchan-x/issues/394
This commit is contained in:
parent
3429708725
commit
191dc4911f
@ -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', {
|
||||
|
||||
@ -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', {
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user