refactor: rename service factory

This commit is contained in:
4gray committed 2021-12-19 10:39:13 +01:00
1 parent 5191f5004f
commit 71d661979a
1 file changed
+2 -2
+2 -2
View File
@@ -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],