Randomize reload time

pull/149/head
Lennart kats 2015-09-10 14:18:51 +00:00
rodzic 4728c8e243
commit b7ad4e83bc
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -253,7 +253,7 @@ define(function(require, exports, module) {
lastError = showError(err.message + ". Please reload this window.", -1);
setTimeout(function() {
window.location.reload();
}, 5 * 60 * 1000);
}, (Math.random() * 8) + 2 * 60 * 1000);
break;
default:
lastError = showError(err, -1);