From 8a66b0a361e0324c1a6024eaa8edd2d81046d7cd Mon Sep 17 00:00:00 2001 From: dario <446-dario@users.noreply.gitlab.hamburg.ccc.de> Date: Fri, 2 Feb 2024 15:44:59 +0100 Subject: [PATCH] fix doorstatus not updating every minute roomstate.js incorrectly used setTimeout() instead of setInterval() to call the door status. This caused the status to only be updated once after the initial page load, instead of once every minute --- themes/ccchh/assets/js/roomstate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/ccchh/assets/js/roomstate.js b/themes/ccchh/assets/js/roomstate.js index 8aa829a..56bd3e2 100644 --- a/themes/ccchh/assets/js/roomstate.js +++ b/themes/ccchh/assets/js/roomstate.js @@ -76,5 +76,5 @@ function update() { window.onload = function () { update() - window.setTimeout(update, interval_ms) + window.setInterval(update, interval_ms) }