Commit a74b74bc authored by Harlan Lieberman-Berg's avatar Harlan Lieberman-Berg

Add notification on disconnect, error.

parent fea204ec
......@@ -58,6 +58,7 @@ window.webmu = (function() {
eb.textContent = errmsg;
mainbox.appendChild(eb);
mainbox.lastChild.scrollIntoView(true);
trigger_notification(errmsg);
};
function get_sessionid() {
......@@ -90,6 +91,7 @@ window.webmu = (function() {
eb.innerHTML = 'The connection to the server has gone away. <a onclick="window.webmu.init()" href="#">Reconnect?</a>';
mainbox.appendChild(eb);
mainbox.lastChild.scrollIntoView(true);
trigger_notification("The connection to the server has gone away!");
}
function identify_protocol() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment