Force the browser to reload when closing the session

After reload, the browser will be forced to display the page which says
the session doesn't exist anymore. This is a temporary solution, before
a better way to tell the user the connection has been closed will be
pull/14/merge
Vasile Popescu 6 years ago
parent e4e64158db
commit 828c45eb48

@ -38,7 +38,7 @@ term.write("$");
connection.onclose = function(evt) {
console.log("Got the WS closed: ", evt);
term.write("disconnected");
window.location.reload();
}
connection.onmessage = function(evt) {

Loading…
Cancel
Save