Clear interval before reload

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-02-14 17:11:25 +01:00
parent 187f2b11a6
commit 22351b100c

View File

@ -968,11 +968,11 @@ AJAX.registerOnload('functions.js', function () {
}
updateTimeout = window.setTimeout(UpdateIdleTime, interval);
} else { //timeout occurred
clearInterval(IncInterval);
if (isStorageSupported('sessionStorage')){
window.sessionStorage.clear();
}
window.location.reload(true);
clearInterval(IncInterval);
}
}
});