mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Prevent fetch loop when banned
This commit is contained in:
parent
9527ef53e5
commit
ba54af770c
@ -198,11 +198,12 @@ function run_fetch_routine() {
|
||||
$('#loginmodal').modal('open');
|
||||
Materialize.toast('Authentication error! You have been banned.', 10000);
|
||||
}
|
||||
if (data.status == 401) {
|
||||
else if (data.status == 401) {
|
||||
$('#loginmodal').modal('open');
|
||||
Materialize.toast('Session expired! You have been logged out.', 10000);
|
||||
} else {
|
||||
setTimeout(run_fetch_routine, 10000);
|
||||
}
|
||||
setTimeout(run_fetch_routine, 10000);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user