mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 19:46:16 -08:00
fix: service worker injection
This commit is contained in:
1 parent
6089578484
commit
ba3dd88dde
1 file changed
+4
-8
@@ -61,14 +61,10 @@ export function DataFactory(dbService: NgxIndexedDBService, http: HttpClient) {
|
||||
deps: [HttpClient],
|
||||
},
|
||||
}),
|
||||
!isElectron
|
||||
? ServiceWorkerModule.register('ngsw-worker.js', {
|
||||
enabled: AppConfig.production,
|
||||
// Register the ServiceWorker as soon as the app is stable
|
||||
// or after 30 seconds (whichever comes first).
|
||||
registrationStrategy: 'registerWhenStable:30000',
|
||||
})
|
||||
: [],
|
||||
ServiceWorkerModule.register('ngsw-worker.js', {
|
||||
enabled: AppConfig.production && !isElectron,
|
||||
registrationStrategy: 'registerWhenStable:30000',
|
||||
}),
|
||||
],
|
||||
providers: [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user