mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-04-02 07:01:56 +02: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');
|
$('#loginmodal').modal('open');
|
||||||
Materialize.toast('Authentication error! You have been banned.', 10000);
|
Materialize.toast('Authentication error! You have been banned.', 10000);
|
||||||
}
|
}
|
||||||
if (data.status == 401) {
|
else if (data.status == 401) {
|
||||||
$('#loginmodal').modal('open');
|
$('#loginmodal').modal('open');
|
||||||
Materialize.toast('Session expired! You have been logged out.', 10000);
|
Materialize.toast('Session expired! You have been logged out.', 10000);
|
||||||
|
} else {
|
||||||
|
setTimeout(run_fetch_routine, 10000);
|
||||||
}
|
}
|
||||||
setTimeout(run_fetch_routine, 10000);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user