[Fix] doorstatus not updating every minute #46
1 changed files with 1 additions and 1 deletions
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
commit
8a66b0a361
|
@ -76,5 +76,5 @@ function update() {
|
||||||
|
|
||||||
window.onload = function () {
|
window.onload = function () {
|
||||||
update()
|
update()
|
||||||
window.setTimeout(update, interval_ms)
|
window.setInterval(update, interval_ms)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue