mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
get web vault url
This commit is contained in:
parent
1609ed5419
commit
ca3b1c739c
@ -5,6 +5,7 @@ export abstract class EnvironmentService {
|
||||
identityUrl: string;
|
||||
iconsUrl: string;
|
||||
|
||||
getWebVaultUrl: () => string;
|
||||
setUrlsFromStorage: () => Promise<void>;
|
||||
setUrls: (urls: any) => Promise<any>;
|
||||
}
|
||||
|
@ -13,7 +13,15 @@ export class EnvironmentService implements EnvironmentServiceAbstraction {
|
||||
identityUrl: string;
|
||||
iconsUrl: string;
|
||||
|
||||
constructor(private apiService: ApiService, private storageService: StorageService) {
|
||||
constructor(private apiService: ApiService, private storageService: StorageService) {}
|
||||
|
||||
getWebVaultUrl(): string {
|
||||
if (this.webVaultUrl != null) {
|
||||
return this.webVaultUrl;
|
||||
} else if (this.baseUrl) {
|
||||
return this.baseUrl;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
async setUrlsFromStorage(): Promise<void> {
|
||||
|
Loading…
Reference in New Issue
Block a user