Skip to content

Commit 07b8458

Browse files
committed
Revert "fix: serviceworker doesnt intercept other urls"
This reverts commit 5267eb6.
1 parent 5267eb6 commit 07b8458

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

ngsw-config.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@
2525
"/**/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
2626
]
2727
}
28-
},
29-
{
30-
"name": "excluded-redirects",
31-
"installMode": "lazy",
32-
"updateMode": "lazy",
33-
"resources": {
34-
"urls": [ "/**" ]
35-
}
3628
}
3729
]
3830
}

src/app/app.config.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ import { provideAnimationsAsync } from '@angular/platform-browser/animations/asy
77
import { provideServiceWorker } from '@angular/service-worker';
88

99
export const appConfig: ApplicationConfig = {
10-
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes),
11-
provideClientHydration(withEventReplay()), provideAnimationsAsync('noop'),
12-
provideServiceWorker('ngsw-worker.js', {
13-
enabled: !isDevMode(),
14-
registrationStrategy: 'registerWhenStable:30000'
10+
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes), provideClientHydration(withEventReplay()), provideAnimationsAsync('noop'), provideServiceWorker('ngsw-worker.js', {
11+
enabled: !isDevMode(),
12+
registrationStrategy: 'registerWhenStable:30000'
1513
})]
1614
};

0 commit comments

Comments
 (0)