From 5398817a1e504bc1bd51b327587a773412b68720 Mon Sep 17 00:00:00 2001 From: grey Date: Sat, 19 Nov 2022 15:49:46 +0100 Subject: [PATCH] - fixed issue #8 --- log-journal.json | 1 - package.json | 2 +- static/js/timer/timerview.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 log-journal.json diff --git a/log-journal.json b/log-journal.json deleted file mode 100644 index 0fbdfd7..0000000 --- a/log-journal.json +++ /dev/null @@ -1 +0,0 @@ -[{"timestamp":"2022-08-18 16:19:06.649","level":"info","module":"Logging","message":"2022-08-18 16:19:06.649 [info] [Logging] Logging initialized"},{"timestamp":"2022-08-18 16:19:06.651","level":"info","module":"Server","message":"2022-08-18 16:19:06.651 [info] [Server] Preparing server"},{"timestamp":"2022-08-18 16:19:06.652","level":"info","module":"Server","message":"2022-08-18 16:19:06.652 [info] [Server] Preparing static routes"},{"timestamp":"2022-08-18 16:19:06.654","level":"info","module":"Server","message":"2022-08-18 16:19:06.654 [info] [Server] Preparing middlewares"},{"timestamp":"2022-08-18 16:19:06.655","level":"info","module":"Config","message":"2022-08-18 16:19:06.655 [info] [Config] Loading config"},{"timestamp":"2022-08-18 16:19:06.658","level":"info","module":"Language","message":"2022-08-18 16:19:06.658 [info] [Language] Searching for languages"},{"timestamp":"2022-08-18 16:19:06.659","level":"info","module":"Language","message":"2022-08-18 16:19:06.659 [info] [Language] Found 3 languages"},{"timestamp":"2022-08-18 16:19:06.659","level":"info","module":"Language","message":"2022-08-18 16:19:06.659 [info] [Language] Reading language file"},{"timestamp":"2022-08-18 16:19:06.675","level":"info","module":"Websocket","message":"2022-08-18 16:19:06.675 [info] [Websocket] Preparing websocket"},{"timestamp":"2022-08-18 16:19:06.675","level":"info","module":"Server","message":"2022-08-18 16:19:06.675 [info] [Server] Preparing routes"},{"timestamp":"2022-08-18 16:19:06.678","level":"info","module":"Server","message":"2022-08-18 16:19:06.678 [info] [Server] Starting server"},{"timestamp":"2022-08-18 16:22:57.338","level":"info","module":"Shutdown","message":"2022-08-18 16:22:57.338 [info] [Shutdown] Caught interrupt signal and shutting down gracefully"}] \ No newline at end of file diff --git a/package.json b/package.json index db05548..e51e115 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opencountdown", - "version": "1.0.6", + "version": "1.0.7", "description": "An opensource countdown", "main": "startHandler.js", "scripts": { diff --git a/static/js/timer/timerview.js b/static/js/timer/timerview.js index 713884b..ab55218 100644 --- a/static/js/timer/timerview.js +++ b/static/js/timer/timerview.js @@ -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