mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 01:56:16 -08:00
refactor: rename service factory
This commit is contained in:
1 parent
5191f5004f
commit
71d661979a
1 file changed
+2
-2
@@ -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],
|
||||
|
||||
Reference in new issue
Block a user