mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-17 01:31:25 +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;
|
identityUrl: string;
|
||||||
iconsUrl: string;
|
iconsUrl: string;
|
||||||
|
|
||||||
|
getWebVaultUrl: () => string;
|
||||||
setUrlsFromStorage: () => Promise<void>;
|
setUrlsFromStorage: () => Promise<void>;
|
||||||
setUrls: (urls: any) => Promise<any>;
|
setUrls: (urls: any) => Promise<any>;
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,15 @@ export class EnvironmentService implements EnvironmentServiceAbstraction {
|
|||||||
identityUrl: string;
|
identityUrl: string;
|
||||||
iconsUrl: 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> {
|
async setUrlsFromStorage(): Promise<void> {
|
||||||
|
Loading…
Reference in New Issue
Block a user