diff --git a/guacamole/src/main/webapp/index.html b/guacamole/src/main/webapp/index.html
index 8ae28e34a..4bc8d5948 100644
--- a/guacamole/src/main/webapp/index.html
+++ b/guacamole/src/main/webapp/index.html
@@ -115,6 +115,7 @@
+
@@ -178,7 +179,10 @@
window.onresize();
// Instantiate client
- var guac = new GuacamoleClient(display, "tunnel");
+ var guac = new GuacamoleClient(
+ display,
+ new GuacamoleHTTPTunnel("tunnel")
+ );
var state = document.getElementById("state");
guac.setOnStateChangeHandler(function(clientState) {
@@ -219,6 +223,8 @@
guac.setErrorHandler(function(error) {
+ guac.disconnect();
+
menu.className = "error";
display.className += " guac-error";
@@ -226,8 +232,79 @@
errorDialogText.textContent = error;
errorDialog.style.visibility = "visible";
+ // Show error by desaturating display
+ var layers = guac.getLayers();
+ for (var i=0; i