summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-10-29 16:04:13 +0200
committerPierre Ossman <ossman@cendio.se>2017-01-04 15:05:01 +0100
commit58fc267b2bac1b89450b76a21e91ffd25e7e4358 (patch)
tree101c9bcb019d773b279ac0f7232900e9eb01fa26
parent47fbdced4530dd2a66a5f20be27b69d6c12a6ffc (diff)
downloadnovnc-58fc267b2bac1b89450b76a21e91ffd25e7e4358.tar.gz
Remove unused token setting
-rw-r--r--app/ui.js8
-rw-r--r--vnc.html4
2 files changed, 0 insertions, 12 deletions
diff --git a/app/ui.js b/app/ui.js
index 7ca0dc7..28e2148 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -214,7 +214,6 @@ var UI;
UI.initSetting('view_only', false);
UI.initSetting('path', 'websockify');
UI.initSetting('repeaterID', '');
- UI.initSetting('token', '');
},
setupWindowEvents: function() {
@@ -1038,7 +1037,6 @@ var UI;
UI.saveSetting('host');
UI.saveSetting('port');
- UI.saveSetting('token');
//UI.saveSetting('password');
},
@@ -1055,14 +1053,8 @@ var UI;
var host = document.getElementById('noVNC_setting_host').value;
var port = document.getElementById('noVNC_setting_port').value;
var password = document.getElementById('noVNC_setting_password').value;
- var token = document.getElementById('noVNC_setting_token').value;
var path = document.getElementById('noVNC_setting_path').value;
- //if token is in path then ignore the new token variable
- if (token) {
- path = WebUtil.injectParamIfMissing(path, "token", token);
- }
-
if ((!host) || (!port)) {
var msg = _("Must set host and port");
Util.Error(msg);
diff --git a/vnc.html b/vnc.html
index e46fa62..5d9331e 100644
--- a/vnc.html
+++ b/vnc.html
@@ -263,10 +263,6 @@
<label for="noVNC_setting_password">Password:</label>
<input id="noVNC_setting_password" type="password" />
</li>
- <li>
- <label for="noVNC_setting_token">Token:</label>
- <input id="noVNC_setting_token" />
- </li>
<li><hr></li>
<li>
<input id="noVNC_connect_button" type="button" value="Connect" class="noVNC_submit" />