mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-24 00:17:23 +00:00
feat(jiraNew): deactivate service worker for electron again
This commit is contained in:
parent
53566e5a3e
commit
c4258f9aed
1 changed files with 1 additions and 2 deletions
|
|
@ -12,9 +12,8 @@ if (environment.production) {
|
|||
|
||||
platformBrowserDynamic().bootstrapModule(AppModule).then(() => {
|
||||
// TODO make asset caching work for electron
|
||||
if ('serviceWorker' in navigator) {
|
||||
if ('serviceWorker' in navigator && environment.production && !IS_ELECTRON) {
|
||||
navigator.serviceWorker.register('ngsw-worker.js');
|
||||
// navigator.serviceWorker.register('issue.worker.js');
|
||||
}
|
||||
}).catch(err => console.log(err));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue