Client now handles tunnel errors.

This commit is contained in:
Michael Jumper
2011-07-13 00:17:34 -07:00
parent 0452f36f04
commit b567591395
2 changed files with 14 additions and 3 deletions

View File

@@ -44,6 +44,11 @@ Guacamole.Client = function(display, tunnel) {
tunnel.oninstruction = doInstruction;
tunnel.onerror = function(message) {
if (guac_client.onerror)
guac_client.onerror(message);
};
// Display must be relatively positioned for mouse to be handled properly
display.style.position = "relative";