mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
setUrlsFromStorage in init
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: cfad521ea8...4dea46f1ad
@@ -108,12 +108,10 @@ const auditService = new AuditService(cryptoFunctionService);
|
|||||||
const analytics = new Analytics(window, () => platformUtilsService.isDev(),
|
const analytics = new Analytics(window, () => platformUtilsService.isDev(),
|
||||||
platformUtilsService, storageService, appIdService);
|
platformUtilsService, storageService, appIdService);
|
||||||
containerService.attachToWindow(window);
|
containerService.attachToWindow(window);
|
||||||
environmentService.setUrlsFromStorage().then(() => {
|
|
||||||
return syncService.fullSync(true);
|
|
||||||
});
|
|
||||||
|
|
||||||
export function initFactory(): Function {
|
export function initFactory(): Function {
|
||||||
return async () => {
|
return async () => {
|
||||||
|
await environmentService.setUrlsFromStorage();
|
||||||
lockService.init(true);
|
lockService.init(true);
|
||||||
const locale = await storageService.get<string>(ConstantsService.localeKey);
|
const locale = await storageService.get<string>(ConstantsService.localeKey);
|
||||||
await i18nService.init(locale);
|
await i18nService.init(locale);
|
||||||
|
|||||||
Reference in New Issue
Block a user