mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-07 06:05:55 +02:00
fix: get refresh property from object
This commit is contained in:
parent
4d5ae72cb6
commit
1e6f7c1247
1 changed files with 2 additions and 2 deletions
|
@ -150,11 +150,11 @@
|
||||||
parseRssi(obj.generic)
|
parseRssi(obj.generic)
|
||||||
window.setInterval("getAjax('/api/powerHistory', parsePowerHistory)", obj.refresh * 1000)
|
window.setInterval("getAjax('/api/powerHistory', parsePowerHistory)", obj.refresh * 1000)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.setInterval("getAjax('/api/powerHistoryDay', parsePowerHistoryDay)", refresh * 1000)
|
window.setInterval("getAjax('/api/powerHistoryDay', parsePowerHistoryDay)", obj.refresh * 1000)
|
||||||
}, 200)
|
}, 200)
|
||||||
/*IF_ENABLE_HISTORY_YIELD_PER_DAY*/
|
/*IF_ENABLE_HISTORY_YIELD_PER_DAY*/
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.setInterval("getAjax('/api/yieldDayHistory', parseYieldDayHistory)", refresh * 1000)
|
window.setInterval("getAjax('/api/yieldDayHistory', parseYieldDayHistory)", obj.refresh * 1000)
|
||||||
}, 400)
|
}, 400)
|
||||||
/*ENDIF_ENABLE_HISTORY_YIELD_PER_DAY*/
|
/*ENDIF_ENABLE_HISTORY_YIELD_PER_DAY*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue