From 0a4b1b352a5c14f7b951a512dc83042806304452 Mon Sep 17 00:00:00 2001 From: Vaadin Bot Date: Mon, 16 Dec 2024 11:27:17 +0100 Subject: [PATCH] fix: Disable workbox developer logs by default (#20718) (#20720) Fixes #19184 Co-authored-by: Artur --- .../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; };