12 lines
243 B
JavaScript
12 lines
243 B
JavaScript
$(() => {
|
|
const oneMinute = 1 * 60 * 1000
|
|
const requestUpdate = () => {
|
|
$.request('CurrentInfo::onUpdateRequested', {
|
|
update: { '@result': '#currentinfo' }
|
|
})
|
|
}
|
|
|
|
setInterval(requestUpdate, oneMinute)
|
|
requestUpdate()
|
|
})
|