diff --git a/app/ui.js b/app/ui.js index 045c64fd..c03f8d37 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1074,14 +1074,10 @@ const UI = { UI.inhibit_reconnect = false; let msg; - if (UI.desktopName !== '') { - if (UI.getSetting('encrypt')) { - msg = _("Connected (encrypted) to ") + UI.desktopName; - } else { - msg = _("Connected (unencrypted) to ") + UI.desktopName; - } + if (UI.getSetting('encrypt')) { + msg = _("Connected (encrypted) to ") + UI.desktopName; } else { - msg = _("Connected"); + msg = _("Connected (unencrypted) to ") + UI.desktopName; } UI.showStatus(msg); UI.updateVisualState('connected'); diff --git a/vnc_lite.html b/vnc_lite.html index 9f766fb1..e5ab3c2a 100644 --- a/vnc_lite.html +++ b/vnc_lite.html @@ -131,19 +131,11 @@ function connected(e) { document.getElementById('sendCtrlAltDelButton').disabled = false; - - let encryption; if (WebUtil.getConfigVar('encrypt', (window.location.protocol === "https:"))) { - encryption = "unencrypted"; + status("Connected (encrypted) to " + desktopName, "normal"); } else { - encryption = "encrypted"; - } - - if (desktopName) { - status("Connected (" + encryption + ") to " + desktopName, "normal"); - } else { - status("Connected (" + encryption + ")", "normal"); + status("Connected (unencrypted) to " + desktopName, "normal"); } }