mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-11-21 15:38:06 +01:00
Print errors in console
This commit is contained in:
parent
4a67492877
commit
4901eeb3e4
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ function handleStatus(data) {
|
|||
statusTimeout = setTimeout(loadStatus, GLOBAL_TIMEOUT);
|
||||
}
|
||||
|
||||
function handleError() {
|
||||
function handleError(error) {
|
||||
console.error(error);
|
||||
clearTimeout(statusTimeout);
|
||||
console.log("Lost connection :'(");
|
||||
document.body.classList.add("w3-disabled");
|
||||
|
|
Loading…
Reference in a new issue