From 4901eeb3e4ca64f4e248d05db1c852aca3a9d1a8 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 4 Jan 2023 14:00:03 +0100 Subject: [PATCH] Print errors in console --- data/www/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/www/script.js b/data/www/script.js index 9ebe19b..8d7f5c0 100644 --- a/data/www/script.js +++ b/data/www/script.js @@ -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");