From b41e921e7e4d42ba59ba39da3be46f32e16379ed Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 28 Oct 2023 23:19:27 +0200 Subject: [PATCH] chore: disable workbox logs Signed-off-by: Stefan Dej --- src/sw.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sw.ts b/src/sw.ts index 811433b4c..4686000d3 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