mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
init lock service
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 799c90af17...e6fde2e92b
@@ -90,7 +90,7 @@ const folderService = new FolderService(cryptoService, userService,
|
||||
() => i18nService.t('noneFolder'), apiService, storageService, i18nService);
|
||||
const collectionService = new CollectionService(cryptoService, userService, storageService, i18nService);
|
||||
const lockService = new LockService(cipherService, folderService, collectionService,
|
||||
cryptoService, platformUtilsService, storageService, messagingService, () => { /* do nothing */ });
|
||||
cryptoService, platformUtilsService, storageService, messagingService, null);
|
||||
const syncService = new SyncService(userService, apiService, settingsService,
|
||||
folderService, cipherService, cryptoService, collectionService, storageService, messagingService,
|
||||
async (expired: boolean) => messagingService.send('logout', { expired: expired }));
|
||||
@@ -109,6 +109,7 @@ environmentService.setUrlsFromStorage().then(() => {
|
||||
|
||||
export function initFactory(): Function {
|
||||
return async () => {
|
||||
lockService.init(true);
|
||||
const locale = await storageService.get<string>(ConstantsService.localeKey);
|
||||
await i18nService.init(locale);
|
||||
await authService.init();
|
||||
|
||||
Reference in New Issue
Block a user