5 lines
99 B
JavaScript
5 lines
99 B
JavaScript
setInterval(function() {
|
|
if (document.hasFocus()) {
|
|
fetch('/presence')
|
|
}
|
|
}, 50000); |