From d593483ecc726cade4b73e702630da4f9a925f76 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 6 Oct 2017 10:07:47 +0200 Subject: [PATCH] Make port optional in ui.js as well It is optional in the RFB object since 1a50f68, so we don't need it at the UI layer either. --- app/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui.js b/app/ui.js index b1f23c31..7bed04ed 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1048,8 +1048,8 @@ var UI = { password = undefined; } - if ((!host) || (!port)) { - var msg = _("Must set host and port"); + if (!host) { + var msg = _("Must set host"); Log.Error(msg); UI.showStatus(msg, 'error'); return;