Skip to content

Commit

Permalink
chore: disable workbox logs (mainsail-crew#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Oct 29, 2023
1 parent b445c8d commit 6481c6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6481c6f

Please sign in to comment.