syntaxwebsite/app/static/js/presence.js

5 lines
99 B
JavaScript

setInterval(function() {
if (document.hasFocus()) {
fetch('/presence')
}
}, 50000);