From 7051bb68d9d8627e163837c13d9c270c0cc5c934 Mon Sep 17 00:00:00 2001 From: Hendrik Date: Sun, 3 Dec 2023 07:58:38 +0100 Subject: [PATCH] Make background red if connection drops --- frontend/kiosk.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/kiosk.js b/frontend/kiosk.js index 708dba8..4769843 100644 --- a/frontend/kiosk.js +++ b/frontend/kiosk.js @@ -83,6 +83,7 @@ class Recommender { this.webSocket = new WebSocket(url); this.webSocket.addEventListener("close", () => { + document.body.style.setProperty("background-color", "red"); alert("Server connection disconnected, please reload"); }); this.webSocket.addEventListener("message", (event) => {