mirror of
https://github.com/novnc/noVNC.git
synced 2026-06-08 13:24:38 +00:00
Keep the connect panel when missing host or port
This commit is contained in:
@@ -929,8 +929,6 @@ var UI;
|
||||
},
|
||||
|
||||
connect: function() {
|
||||
UI.closeAllPanels();
|
||||
|
||||
var host = document.getElementById('noVNC_setting_host').value;
|
||||
var port = document.getElementById('noVNC_setting_port').value;
|
||||
var password = document.getElementById('noVNC_setting_password').value;
|
||||
@@ -949,6 +947,8 @@ var UI;
|
||||
|
||||
if (!UI.initRFB()) return;
|
||||
|
||||
UI.closeAllPanels();
|
||||
|
||||
UI.rfb.set_encrypt(UI.getSetting('encrypt'));
|
||||
UI.rfb.set_true_color(UI.getSetting('true_color'));
|
||||
UI.rfb.set_local_cursor(UI.getSetting('cursor'));
|
||||
|
||||
Reference in New Issue
Block a user