1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

init lock service

This commit is contained in:
Kyle Spearrin 2018-05-16 10:19:32 -04:00
parent 873248ca38
commit da478027f6
2 changed files with 3 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 799c90af1702c681874cb8fce8f8adcf1049d0c8
Subproject commit e6fde2e92be4be472933234daa7bae242ee17794

View File

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