diff --git a/src/app/services.module.ts b/src/app/services.module.ts index 076a7913..f1e0e0bc 100644 --- a/src/app/services.module.ts +++ b/src/app/services.module.ts @@ -9,6 +9,7 @@ import { EventService as EventServiceAbstraction } from "jslib-common/abstractio import { I18nService as I18nServiceAbstraction } from "jslib-common/abstractions/i18n.service"; import { CLIENT_TYPE, + RELOAD_CALLBACK, SECURE_STORAGE, STATE_FACTORY, WINDOW_TOKEN, @@ -151,14 +152,13 @@ export function initFactory( provide: CryptoServiceAbstraction, useClass: ElectronCryptoService, }, + { + provide: RELOAD_CALLBACK, + useValue: null, + }, { provide: SystemServiceAbstraction, - useFactory: ( - messagingService: MessagingServiceAbstraction, - platformUtilsService: PlatformUtilsServiceAbstraction, - stateService: StateServiceAbstraction - ) => new SystemService(messagingService, platformUtilsService, null, stateService), - deps: [MessagingServiceAbstraction, PlatformUtilsServiceAbstraction, StateServiceAbstraction], + useClass: SystemService, }, { provide: PasswordRepromptServiceAbstraction, useClass: PasswordRepromptService }, NativeMessagingService,