fix doorstatus not updating every minute
All checks were successful
/ build (pull_request) Successful in 40s
/ cleanup-staging (pull_request) Successful in 2s
/ build (push) Successful in 13s

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
This commit is contained in:
dario 2024-02-02 15:44:59 +01:00
parent 61f22607d6
commit 8a66b0a361
Signed by: dario
SSH key fingerprint: SHA256:zP7OE8nhYwOWaDhOawrP6NmUVcZWi0wyPKQa6052GpM

View file

@ -76,5 +76,5 @@ function update() {
window.onload = function () {
update()
window.setTimeout(update, interval_ms)
window.setInterval(update, interval_ms)
}