diff --git a/guacamole/src/main/webapp/client.xhtml b/guacamole/src/main/webapp/client.xhtml index b50e01f8b..e6e2a6ac3 100644 --- a/guacamole/src/main/webapp/client.xhtml +++ b/guacamole/src/main/webapp/client.xhtml @@ -103,10 +103,12 @@ // Instantiate client var guac = new Guacamole.Client( - GuacamoleUI.display, new Guacamole.HTTPTunnel("tunnel") ); + // Add client to UI + GuacamoleUI.display.appendChild(guac.getDisplay()); + // Tie UI to client GuacamoleUI.attach(guac); diff --git a/guacamole/src/main/webapp/scripts/interface.js b/guacamole/src/main/webapp/scripts/interface.js index 2b810d2fa..cb1f8f3db 100644 --- a/guacamole/src/main/webapp/scripts/interface.js +++ b/guacamole/src/main/webapp/scripts/interface.js @@ -423,32 +423,6 @@ GuacamoleUI.attach = function(guac) { // Display error message GuacamoleUI.showError(error); - - // Show error by desaturating display - var layers = guac.getLayers(); - for (var i=0; i