mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying to get a better fix for sleepmode
This commit is contained in:
@@ -152,7 +152,8 @@ $(document).ready(function()
|
||||
|
||||
function sample() {
|
||||
if (Date.now() - lastSample >= SAMPLE_RATE * 2) {
|
||||
window.location.reload(true);
|
||||
socket.disconnect();
|
||||
socket = io.connect('//'+window.location.hostname+':3000');
|
||||
}
|
||||
lastSample = Date.now();
|
||||
setTimeout(sample, SAMPLE_RATE);
|
||||
|
||||
Reference in New Issue
Block a user