chore: disable workbox logs (#1629)

This commit is contained in:
Stefan Dej authored and GitHub committed 2023-10-29 08:37:57 +01:00
1 parent b445c8d5b8
commit 6481c6fa25
1 file changed
+2
+2
View File
@@ -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