mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Minor error with factoring ifelse
This commit is contained in:
parent
ba54af770c
commit
a95cf3591b
@ -197,8 +197,7 @@ function run_fetch_routine() {
|
|||||||
if (data.status == 403) {
|
if (data.status == 403) {
|
||||||
$('#loginmodal').modal('open');
|
$('#loginmodal').modal('open');
|
||||||
Materialize.toast('Authentication error! You have been banned.', 10000);
|
Materialize.toast('Authentication error! You have been banned.', 10000);
|
||||||
}
|
} else 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 {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user