mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-02 08:40:08 +01:00
Reverted prior change. Changed call to getHost
This commit is contained in:
parent
49b796ebd6
commit
8223011248
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user