mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-27 17:18:04 +01:00
reset domain to null if empty
This commit is contained in:
parent
15f254879f
commit
4694793785
@ -42,6 +42,9 @@ export class LoginView implements View {
|
||||
if (containerService) {
|
||||
const platformUtilsService: PlatformUtilsService = containerService.getPlatformUtilsService();
|
||||
this._domain = platformUtilsService.getDomain(this.uri);
|
||||
if (this._domain === '') {
|
||||
this._domain = null;
|
||||
}
|
||||
} else {
|
||||
throw new Error('window.bitwardenContainerService not initialized.');
|
||||
}
|
||||
@ -70,7 +73,7 @@ export class LoginView implements View {
|
||||
}
|
||||
|
||||
get isWebsite(): boolean {
|
||||
return this.uri != null && (this.uri.indexOf('http://') > -1 || this.uri.indexOf('https://') > -1);
|
||||
return this.uri != null && (this.uri.indexOf('http://') === 0 || this.uri.indexOf('https://') === 0);
|
||||
}
|
||||
|
||||
get canLaunch(): boolean {
|
||||
|
Loading…
Reference in New Issue
Block a user