Skip to content

Commit

Permalink
Don't force reload the page on error (fixes #24)
Browse files Browse the repository at this point in the history
  • Loading branch information
praeclarum committed Dec 11, 2017
1 parent 6e05c26 commit 0598645
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Ooui/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});

Expand Down

0 comments on commit 0598645

Please sign in to comment.