Additional fixes
This commit is contained in:
parent
3350bdd36e
commit
cc783027c0
|
@ -135,7 +135,7 @@ const UI = {
|
||||||
let autoconnect = WebUtil.getConfigVar('autoconnect', false);
|
let autoconnect = WebUtil.getConfigVar('autoconnect', false);
|
||||||
if (autoconnect === 'true' || autoconnect == '1') {
|
if (autoconnect === 'true' || autoconnect == '1') {
|
||||||
autoconnect = true;
|
autoconnect = true;
|
||||||
UI.connect();
|
//UI.connect(); //KASM - Not sure why this causes two canvas elements showign the same thing
|
||||||
} else {
|
} else {
|
||||||
autoconnect = false;
|
autoconnect = false;
|
||||||
// Show the connect panel on first load unless autoconnecting
|
// Show the connect panel on first load unless autoconnecting
|
||||||
|
@ -351,8 +351,11 @@ const UI = {
|
||||||
addConnectionControlHandlers() {
|
addConnectionControlHandlers() {
|
||||||
document.getElementById("noVNC_disconnect_button")
|
document.getElementById("noVNC_disconnect_button")
|
||||||
.addEventListener('click', UI.disconnect);
|
.addEventListener('click', UI.disconnect);
|
||||||
document.getElementById("noVNC_connect_button")
|
var connect_btn_el = document.getElementById("noVNC_connect_button");
|
||||||
.addEventListener('click', UI.connect);
|
if (typeof(connect_btn_el) != 'undefined' && connect_btn_el != null)
|
||||||
|
{
|
||||||
|
connect_btn_el.addEventListener('click', UI.connect);
|
||||||
|
}
|
||||||
document.getElementById("noVNC_cancel_reconnect_button")
|
document.getElementById("noVNC_cancel_reconnect_button")
|
||||||
.addEventListener('click', UI.cancelReconnect);
|
.addEventListener('click', UI.cancelReconnect);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue