mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 11:25:22 +02:00
Add notice when fetching error
This commit is contained in:
@ -371,7 +371,8 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
fet.catch(function(data) {
|
fet.catch(function(data) {
|
||||||
if (data.status != 403 && data.status != 401) {
|
if (500 <= data.status < 600) {
|
||||||
|
Materialize.toast('Fetching messages error! Webserver down?', 10000);
|
||||||
fetchtimeout = setTimeout(run_fetch_routine, 10000);
|
fetchtimeout = setTimeout(run_fetch_routine, 10000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user