Skip to content

Commit

Permalink
fix: Disable workbox developer logs by default (#20718) (#20720)
Browse files Browse the repository at this point in the history
Fixes #19184

Co-authored-by: Artur <[email protected]>
  • Loading branch information
vaadin-bot and Artur- authored Dec 16, 2024
1 parent 1e53456 commit 0a4b1b3
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 0a4b1b3

Please sign in to comment.