Skip to content

Commit

Permalink
fix: Disable workbox developer logs by default (#20718)
Browse files Browse the repository at this point in the history
Fixes #19184
  • Loading branch information
Artur- authored Dec 16, 2024
1 parent afd284b commit 620369c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/// <reference lib="webworker" />

self.__WB_DISABLE_DEV_LOGS = true;

importScripts('sw-runtime-resources-precache.js');
import { clientsClaim, cacheNames, WorkboxPlugin } from 'workbox-core';
import { matchPrecache, precacheAndRoute, getCacheKeyForURL } from 'workbox-precaching';
Expand All @@ -9,6 +11,7 @@ import { NetworkOnly, NetworkFirst } from 'workbox-strategies';

declare var self: ServiceWorkerGlobalScope & {
__WB_MANIFEST: Array<PrecacheEntry>;
__WB_DISABLE_DEV_LOGS: boolean;
additionalManifestEntries?: Array<PrecacheEntry>;
};

Expand Down

0 comments on commit 620369c

Please sign in to comment.