diff --git a/jslib b/jslib index 12011bf4da5..54c6a4b3c3d 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 12011bf4da5a5f5272dfdec9bff0fc28fa512836 +Subproject commit 54c6a4b3c3d34fe6adbbeba5d35a416a3fbc487d diff --git a/src/app/services/services.module.ts b/src/app/services/services.module.ts index adebe8d6d2e..75c7d7087a6 100644 --- a/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts @@ -52,6 +52,10 @@ import { VaultTimeoutService as VaultTimeoutServiceAbstraction } from "jslib-com import { ThemeType } from "jslib-common/enums/themeType"; +import { AccountFactory } from "jslib-common/models/domain/account"; + +import { Account } from "../../models/account"; + export function initFactory( window: Window, storageService: StorageServiceAbstraction, @@ -178,7 +182,19 @@ export function initFactory( }, { provide: StateServiceAbstraction, - useClass: StateService, + useFactory: ( + storageService: StorageServiceAbstraction, + secureStorageService: StorageServiceAbstraction, + logService: LogService, + stateMigrationService: StateMigrationServiceAbstraction + ) => + new StateService( + storageService, + secureStorageService, + logService, + stateMigrationService, + new AccountFactory(Account) + ), deps: [ StorageServiceAbstraction, "SECURE_STORAGE",