1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

setUrlsFromStorage in init

This commit is contained in:
Kyle Spearrin
2018-06-13 14:09:16 -04:00
parent e18f76d2b0
commit 14ecc534e0
2 changed files with 2 additions and 4 deletions

2
jslib

Submodule jslib updated: cfad521ea8...4dea46f1ad

View File

@@ -108,12 +108,10 @@ const auditService = new AuditService(cryptoFunctionService);
const analytics = new Analytics(window, () => platformUtilsService.isDev(),
platformUtilsService, storageService, appIdService);
containerService.attachToWindow(window);
environmentService.setUrlsFromStorage().then(() => {
return syncService.fullSync(true);
});
export function initFactory(): Function {
return async () => {
await environmentService.setUrlsFromStorage();
lockService.init(true);
const locale = await storageService.get<string>(ConstantsService.localeKey);
await i18nService.init(locale);