summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Lightning <kassah@gmail.com>2012-06-22 22:34:20 -0700
committerWilliam Lightning <kassah@gmail.com>2012-06-22 22:34:20 -0700
commit9ebc84f2e963c6b1d4325defa07da5bf8447512e (patch)
tree9c60333c56a63a55a03bfa5ba63fc2d2276e0c74
parenta997c5fd942350450fbe62bfaded1e2abc08be1b (diff)
downloadnovnc-9ebc84f2e963c6b1d4325defa07da5bf8447512e.tar.gz
Update vnc_auto.html to use config option for repeaterID
-rw-r--r--vnc_auto.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/vnc_auto.html b/vnc_auto.html
index 0969dbe..47835b3 100644
--- a/vnc_auto.html
+++ b/vnc_auto.html
@@ -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;
@@ -103,7 +103,6 @@
password = WebUtil.getQueryVar('password', '');
path = WebUtil.getQueryVar('path', 'websockify');
- repeaterID = WebUtil.getQueryVar('repeaterid','');
if ((!host) || (!port)) {
updateState('failed',
@@ -114,13 +113,14 @@
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>