Skip to content

Commit

Permalink
Remove unused token setting
Browse files Browse the repository at this point in the history
  • Loading branch information
CendioOssman committed Jan 4, 2017
1 parent 47fbdce commit 58fc267
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions app/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ var UI;
UI.initSetting('view_only', false);
UI.initSetting('path', 'websockify');
UI.initSetting('repeaterID', '');
UI.initSetting('token', '');
},

setupWindowEvents: function() {
Expand Down Expand Up @@ -1038,7 +1037,6 @@ var UI;

UI.saveSetting('host');
UI.saveSetting('port');
UI.saveSetting('token');
//UI.saveSetting('password');
},

Expand All @@ -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);
Expand Down
4 changes: 0 additions & 4 deletions vnc.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,6 @@ <h1 class="noVNC_logo" translate="no"><span>no</span><br />VNC</h1>
<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" />
Expand Down

0 comments on commit 58fc267

Please sign in to comment.