Keep polling after error

This commit is contained in:
Gabriel Augendre 2023-01-02 23:22:18 +01:00
parent 7758725ac6
commit 3a60ce6a97

View file

@ -66,9 +66,11 @@ function handleStatus(data) {
}
function handleError() {
clearTimeout(statusTimeout);
console.log("Lost connection :'(");
document.body.classList.add("w3-disabled");
connectionOk = false;
statusTimeout = setTimeout(loadStatus, GLOBAL_TIMEOUT);
}
(() => {