Remove unused token setting

This commit is contained in:
Pierre Ossman 2016-10-29 16:04:13 +02:00
parent 47fbdced45
commit 58fc267b2b
2 changed files with 0 additions and 12 deletions

View File

@ -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);

View File

@ -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" />