From 8beddf1a547aff18bf31411444e8536d77aee7e4 Mon Sep 17 00:00:00 2001 From: Artur Date: Mon, 16 Dec 2024 12:05:39 +0200 Subject: [PATCH] fix: Disable workbox developer logs by default (#20718) Fixes #19184 --- .../src/main/resources/com/vaadin/flow/server/frontend/sw.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flow-server/src/main/resources/com/vaadin/flow/server/frontend/sw.ts b/flow-server/src/main/resources/com/vaadin/flow/server/frontend/sw.ts index e51c0f57df4..61f1da8c01f 100644 --- a/flow-server/src/main/resources/com/vaadin/flow/server/frontend/sw.ts +++ b/flow-server/src/main/resources/com/vaadin/flow/server/frontend/sw.ts @@ -1,5 +1,7 @@ /// +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'; @@ -9,6 +11,7 @@ import { NetworkOnly, NetworkFirst } from 'workbox-strategies'; declare var self: ServiceWorkerGlobalScope & { __WB_MANIFEST: Array; + __WB_DISABLE_DEV_LOGS: boolean; additionalManifestEntries?: Array; };