Änderung Controller
This commit is contained in:
@@ -172,9 +172,15 @@
|
||||
} catch (_) {}
|
||||
}
|
||||
|
||||
function heartbeat() {
|
||||
fetch('/api/display/ping', { method: 'POST' }).catch(() => {});
|
||||
}
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
poll();
|
||||
heartbeat();
|
||||
setInterval(poll, 1500);
|
||||
setInterval(heartbeat, 5000);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user