- fixed issue #8

This commit is contained in:
2022-11-19 15:49:46 +01:00
parent 1fc16fdc14
commit 5398817a1e
3 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,7 @@ let screensaverText = document.getElementById("moveClock");
let screensaverClock = document.getElementById("screensaverClock");
// Prepare connection to backend
let socket = new ReconnectingWebSocket("ws://127.0.0.1:" + location.port);
let socket = new ReconnectingWebSocket("ws://" + location.hostname + ":" + location.port);
// State variables
let ackSessionTokenChange = false; // Wether the user has acknowledged the session token mismatch