]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Update vnc_auto.html to use config option for repeaterID
authorWilliam Lightning <kassah@gmail.com>
Sat, 23 Jun 2012 05:34:20 +0000 (22:34 -0700)
committerWilliam Lightning <kassah@gmail.com>
Sat, 23 Jun 2012 05:34:20 +0000 (22:34 -0700)
vnc_auto.html

index 0969dbea589e57a5e365491a76c64ce76f601489..47835b3d46fce6968dc5944aeb2c15790b403509 100644 (file)
@@ -84,7 +84,7 @@
         }
 
         window.onload = function () {
-            var host, port, password, path, token, repeaterID;
+            var host, port, password, path, token;
 
             $D('sendCtrlAltDelButton').style.display = "inline";
             $D('sendCtrlAltDelButton').onclick = sendCtrlAltDel;
 
             password = WebUtil.getQueryVar('password', '');
             path = WebUtil.getQueryVar('path', 'websockify');
-            repeaterID = WebUtil.getQueryVar('repeaterid','');
             
             if ((!host) || (!port)) {
                 updateState('failed',
             rfb = new RFB({'target':       $D('noVNC_canvas'),
                            'encrypt':      WebUtil.getQueryVar('encrypt',
                                     (window.location.protocol === "https:")),
+                           'repeaterID':   WebUtil.getQueryVar('repeaterID', ''),
                            'true_color':   WebUtil.getQueryVar('true_color', true),
                            'local_cursor': WebUtil.getQueryVar('cursor', true),
                            'shared':       WebUtil.getQueryVar('shared', true),
                            'view_only':    WebUtil.getQueryVar('view_only', false),
                            'updateState':  updateState,
                            'onPasswordRequired':  passwordRequired});
-            rfb.connect(host, port, password, path, repeaterID);
+            rfb.connect(host, port, password, path);
         };
         </script>