Remove unused token setting
This commit is contained in:
parent
47fbdced45
commit
58fc267b2b
|
@ -214,7 +214,6 @@ var UI;
|
||||||
UI.initSetting('view_only', false);
|
UI.initSetting('view_only', false);
|
||||||
UI.initSetting('path', 'websockify');
|
UI.initSetting('path', 'websockify');
|
||||||
UI.initSetting('repeaterID', '');
|
UI.initSetting('repeaterID', '');
|
||||||
UI.initSetting('token', '');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
setupWindowEvents: function() {
|
setupWindowEvents: function() {
|
||||||
|
@ -1038,7 +1037,6 @@ var UI;
|
||||||
|
|
||||||
UI.saveSetting('host');
|
UI.saveSetting('host');
|
||||||
UI.saveSetting('port');
|
UI.saveSetting('port');
|
||||||
UI.saveSetting('token');
|
|
||||||
//UI.saveSetting('password');
|
//UI.saveSetting('password');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1055,14 +1053,8 @@ var UI;
|
||||||
var host = document.getElementById('noVNC_setting_host').value;
|
var host = document.getElementById('noVNC_setting_host').value;
|
||||||
var port = document.getElementById('noVNC_setting_port').value;
|
var port = document.getElementById('noVNC_setting_port').value;
|
||||||
var password = document.getElementById('noVNC_setting_password').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;
|
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)) {
|
if ((!host) || (!port)) {
|
||||||
var msg = _("Must set host and port");
|
var msg = _("Must set host and port");
|
||||||
Util.Error(msg);
|
Util.Error(msg);
|
||||||
|
|
4
vnc.html
4
vnc.html
|
@ -263,10 +263,6 @@
|
||||||
<label for="noVNC_setting_password">Password:</label>
|
<label for="noVNC_setting_password">Password:</label>
|
||||||
<input id="noVNC_setting_password" type="password" />
|
<input id="noVNC_setting_password" type="password" />
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<label for="noVNC_setting_token">Token:</label>
|
|
||||||
<input id="noVNC_setting_token" />
|
|
||||||
</li>
|
|
||||||
<li><hr></li>
|
<li><hr></li>
|
||||||
<li>
|
<li>
|
||||||
<input id="noVNC_connect_button" type="button" value="Connect" class="noVNC_submit" />
|
<input id="noVNC_connect_button" type="button" value="Connect" class="noVNC_submit" />
|
||||||
|
|
Loading…
Reference in New Issue