From 6481c6fa25ab925be905f74b8025dcfdbd1c696c Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 29 Oct 2023 08:37:57 +0100 Subject: [PATCH] chore: disable workbox logs (#1629) --- src/sw.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sw.ts b/src/sw.ts index 811433b4..4686000d 100644 --- a/src/sw.ts +++ b/src/sw.ts @@ -6,6 +6,8 @@ declare let self: ServiceWorkerGlobalScope import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching' import { clientsClaim } from 'workbox-core' +// disable workbox logs +self.__wb_disable_dev_logs = true cleanupOutdatedCaches() // cleanup everything that's not needed anymore precacheAndRoute(self.__WB_MANIFEST) //cache our new stuff