mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Fix fetch status catch
This commit is contained in:
parent
a7469f2940
commit
a0dcde31f8
@ -383,7 +383,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
fet.catch(function(data) {
|
fet.catch(function(data) {
|
||||||
if (500 <= data.status < 600) {
|
if (500 <= data.status && data.status < 600) {
|
||||||
Materialize.toast('Fetching messages error! Webserver down?', 10000);
|
Materialize.toast('Fetching messages error! Webserver down?', 10000);
|
||||||
fetchtimeout = setTimeout(run_fetch_routine, 10000);
|
fetchtimeout = setTimeout(run_fetch_routine, 10000);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user