Reverted prior change. Changed call to getHost

This commit is contained in:
Matt Smith 2020-07-13 15:47:55 -05:00
parent 49b796ebd6
commit 8223011248
2 changed files with 2 additions and 8 deletions

View File

@ -157,13 +157,7 @@ export class Utils {
static getHostname(uriString: string): string {
const url = Utils.getUrl(uriString);
try {
let hostname = url != null && url.hostname !== '' ? url.hostname : null;
if (hostname != null && url.port !== '') {
hostname += ":" + url.port;
}
return hostname;
return url != null && url.hostname !== '' ? url.hostname : null;
} catch {
return null;
}

View File

@ -62,7 +62,7 @@ export class LoginUriView implements View {
return null;
}
if (this._hostname == null && this.uri != null) {
this._hostname = Utils.getHostname(this.uri);
this._hostname = Utils.getHost(this.uri);
if (this._hostname === '') {
this._hostname = null;
}