mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 03:03:43 +00:00
delay i18n evaluations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user