Skip to content

Commit

Permalink
fix: service worker injection
Browse files Browse the repository at this point in the history
  • Loading branch information
4gray committed Sep 24, 2022
1 parent 6089578 commit ba3dd88
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down

1 comment on commit ba3dd88

@vercel
Copy link

@vercel vercel bot commented on ba3dd88 Sep 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

iptvnator – ./

iptvnator-git-electron-4gray.vercel.app
iptvnator.vercel.app
iptvnator-4gray.vercel.app

Please sign in to comment.