Respaced init code.
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Wed, 25 Jan 2012 20:06:00 +0000 (12:06 -0800)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Wed, 25 Jan 2012 20:06:00 +0000 (12:06 -0800)
src/main/webapp/client.xhtml

index 71d519d..ae01eb6 100644 (file)
@@ -99,8 +99,8 @@
             // Start connect after control returns from onload (allow browser
             // to consider the page loaded).
             document.body.onload = function() {
-
                 window.setTimeout(function() {
+
                     // Instantiate client
                     var guac = new Guacamole.Client(
                         GuacamoleUI.display,
                     catch (e) {
                         GuacamoleUI.showError(e.message);
                     }
-                }, 0);
 
+                }, 0);
             };
 
         /* ]]> */ </script>