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
This commit is contained in:
parent
61f22607d6
commit
8a66b0a361
1 changed files with 1 additions and 1 deletions
|
@ -76,5 +76,5 @@ function update() {
|
|||
|
||||
window.onload = function () {
|
||||
update()
|
||||
window.setTimeout(update, interval_ms)
|
||||
window.setInterval(update, interval_ms)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue