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.
This commit is contained in:
Pierre Ossman 2017-10-06 10:07:47 +02:00
parent 0f897520a2
commit d593483ecc
1 changed files with 2 additions and 2 deletions

View File

@ -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;