Don't force reload the page on error (fixes #24)
This commit is contained in:
parent
6e05c2677b
commit
0598645923
|
@ -57,7 +57,8 @@ function ooui (rootElementPath) {
|
|||
socket.addEventListener ("close", function (event) {
|
||||
console.error ("Web socket close", event);
|
||||
if (opened) {
|
||||
location.reload ();
|
||||
alert ("Connection to the server has been lost. Please try refreshing the page.");
|
||||
opened = false;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue