Skip to content
Snippets Groups Projects
Commit 9c1e65c1 authored by Maze's avatar Maze :speech_balloon:
Browse files

gentle forcereload

parent 15455508
No related branches found
No related tags found
No related merge requests found
......@@ -84,12 +84,12 @@ class Login{
}
onSocketForceReload(data){
if (typeof(noreload) !== 'undefined') {
this.cli.println('[SERVER]: you should reload the page now!', '#733');
return;
}
this.cli.println('reloading client', '#555');
window.location.reload(true);
this.cli.println('[SERVER]: New version! Refresh page!', '#f00');
setInterval(()=> {
this.cli.println('[SERVER]: New version! Refresh page!', '#f00');
} , 10000);
// this is force reload. Deactivated now.
// window.location.reload(true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment