Trying to get a better fix for sleepmode

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-23 10:02:14 +02:00
parent 49a26b0884
commit a0c5d84bd2

View File

@@ -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);