From 1d22d2514f7be14d51ed2ab78e13df5da2646546 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 18 Jan 2021 11:16:37 +0100 Subject: Fix service worker --- client/src/main.ts | 5 ----- 1 file changed, 5 deletions(-) (limited to 'client/src/main.ts') diff --git a/client/src/main.ts b/client/src/main.ts index 99976a3f7..84c82203d 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -11,11 +11,6 @@ if (environment.production) { const bootstrap = () => platformBrowserDynamic() .bootstrapModule(AppModule) .then(bootstrapModule => { - if ('serviceWorker' in navigator && environment.production) { - navigator.serviceWorker.register('/ngsw-worker.js') - .catch(err => console.error('Cannot register service worker.', err)) - } - if (!environment.production) { const applicationRef = bootstrapModule.injector.get(ApplicationRef) const componentRef = applicationRef.components[0] -- cgit v1.2.3