Moved error style change into hook
This commit is contained in:
1 parent
afa8c740f6
commit
297696c905
1 file changed
+4
@@ -214,10 +214,14 @@
|
||||
guacErrorImage.src = "images/noguacamole-logo.png";
|
||||
|
||||
guac.setErrorHandler(function(error) {
|
||||
|
||||
menu.className = "error";
|
||||
display.className += " guac-error";
|
||||
|
||||
logo.src = guacErrorImage.src;
|
||||
errorDialogText.textContent = error;
|
||||
errorDialog.style.visibility = "visible";
|
||||
|
||||
});
|
||||
|
||||
// Reconnect button
|
||||
|
||||
Reference in new issue
Block a user