diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 3a25becf0..1e151e874 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -26,7 +26,7 @@ function isElectron(): boolean { return !!(window && window.process && window.process.type); } -export function AuthenticationFactory() { +export function DataFactory() { if (isElectron()) { return new ElectronService(); } @@ -53,7 +53,7 @@ export function AuthenticationFactory() { providers: [ { provide: DataService, - useFactory: AuthenticationFactory, + useFactory: DataFactory, }, ], bootstrap: [AppComponent],