mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-26 17:08:33 +01:00
delay i18n evaluations
This commit is contained in:
parent
b1e4c98f6d
commit
583b7c3b15
@ -56,12 +56,12 @@ export class ConstantsService {
|
||||
|
||||
twoFactorProviderInfo: any[];
|
||||
|
||||
constructor(i18nService: any, platformUtilsService: PlatformUtilsService) {
|
||||
if (platformUtilsService.isEdge()) {
|
||||
constructor(i18nService: any, delayLoad: number) {
|
||||
if (delayLoad && delayLoad > 0) {
|
||||
// delay for i18n fetch
|
||||
setTimeout(() => {
|
||||
this.bootstrap(i18nService);
|
||||
}, 1000);
|
||||
}, delayLoad);
|
||||
} else {
|
||||
this.bootstrap(i18nService);
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ export class FolderService implements FolderServiceInterface {
|
||||
decryptedFolderCache: any[];
|
||||
|
||||
constructor(private cryptoService: CryptoService, private userService: UserService,
|
||||
private noneFolder: string, private apiService: ApiService,
|
||||
private noneFolder: () => string, private apiService: ApiService,
|
||||
private storageService: StorageService) {
|
||||
}
|
||||
|
||||
@ -66,7 +66,7 @@ export class FolderService implements FolderServiceInterface {
|
||||
|
||||
const decFolders: any[] = [{
|
||||
id: null,
|
||||
name: this.noneFolder,
|
||||
name: this.noneFolder(),
|
||||
}];
|
||||
|
||||
const key = await this.cryptoService.getKey();
|
||||
|
Loading…
Reference in New Issue
Block a user