1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-18 02:41:15 +02: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

@ -1 +1 @@
Subproject commit cfad521ea8ef205abe774907d8f7a243b3adaf10
Subproject commit 4dea46f1addd949e4f564f8d0fe8039ccc66a655

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);