diff --git a/guacamole/src/main/webapp/index.html b/guacamole/src/main/webapp/index.html index 9cab99f90..9222b227e 100644 --- a/guacamole/src/main/webapp/index.html +++ b/guacamole/src/main/webapp/index.html @@ -105,7 +105,6 @@
-

Error

@@ -189,7 +188,7 @@ window.onresize(); var state = document.getElementById("state"); - guac.setOnStateChangeHandler(function(clientState) { + guac.onstatechange = function(clientState) { switch (clientState) { case 0: @@ -215,17 +214,17 @@ default: state.textContent = "Unknown"; } - }); + }; // Cache error image (might not be available when error occurs) var guacErrorImage = new Image(); guacErrorImage.src = "images/noguacamole-logo-24.png"; - guac.setNameHandler(function(name) { + guac.onname = function(name) { document.title = name; - }); + }; - guac.setErrorHandler(function(error) { + guac.onerror = function(error) { guac.disconnect(); @@ -262,7 +261,7 @@ } - }); + }; // Mouse var mouse = new GuacamoleMouse(display); @@ -340,11 +339,9 @@ }; // Server copy handler - guac.setClipboardHandler( - function(data) { - clipboardElement.value = data; - } - ); + guac.onclipboard = function(data) { + clipboardElement.value = data; + }; // Show/Hide clipboard