From 047dbd742341e268ca772eda8d2ff0b6ba09cb44 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 05 六月 2025 16:57:36 +0800 Subject: [PATCH] 2025-06-05 --- src/serviceWorker.js | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/serviceWorker.js b/src/serviceWorker.js index f8c7e50..7039f75 100644 --- a/src/serviceWorker.js +++ b/src/serviceWorker.js @@ -41,9 +41,8 @@ // Add some additional logging to localhost, pointing developers to the // service worker/PWA documentation. navigator.serviceWorker.ready.then(() => { - console.log( - 'This web app is being served cache-first by a service ' + - 'worker. To learn more, visit https://bit.ly/CRA-PWA' + console.info( + 'This web app is being served cache-first by a service worker. To learn more, visit https://bit.ly/CRA-PWA' ); }); } else { @@ -69,9 +68,8 @@ // At this point, the updated precached content has been fetched, // but the previous service worker will still serve the older // content until all client tabs are closed. - console.log( - 'New content is available and will be used when all ' + - 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' + console.info( + 'New content is available and will be used when all tabs for this page are closed. See https://bit.ly/CRA-PWA.' ); // Execute callback @@ -82,7 +80,7 @@ // At this point, everything has been precached. // It's the perfect time to display a // "Content is cached for offline use." message. - console.log('Content is cached for offline use.'); + console.info('Content is cached for offline use.'); // Execute callback if (config && config.onSuccess) { @@ -120,7 +118,7 @@ } }) .catch(() => { - console.log( + console.info( 'No internet connection found. App is running in offline mode.' ); }); -- Gitblit v1.8.0