1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[SM-88] [BEEEP] Add support for chrome.storage.managed for environment urls (#3120)

* Add managed_schema

* Add note on login page which server you are logging into.

* Implement it

* Remove caching logic since it seems unecessary

* Add error

* Handle error in hasManagedEnvironment

* Fix compile
This commit is contained in:
Oscar Hinton
2022-08-08 13:40:09 +02:00
committed by GitHub
parent c263eacd88
commit af371af6e1
13 changed files with 173 additions and 18 deletions

View File

@@ -49,6 +49,10 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit
super(environmentService, i18nService, platformUtilsService);
}
get selfHostedDomain() {
return this.environmentService.hasBaseUrl() ? this.environmentService.getWebVaultUrl() : null;
}
async ngOnInit() {
if (this.email == null || this.email === "") {
this.email = await this.stateService.getRememberedEmail();