From a818168eaa5872368f209231cb9f94fdb4d0f3ed Mon Sep 17 00:00:00 2001 From: Guzel738 Date: Mon, 1 Feb 2021 11:42:24 +0300 Subject: [PATCH] serviceWorker file fixed --- kafka-ui-react-app/src/serviceWorker.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kafka-ui-react-app/src/serviceWorker.ts b/kafka-ui-react-app/src/serviceWorker.ts index 690db4c4e2..f256636533 100644 --- a/kafka-ui-react-app/src/serviceWorker.ts +++ b/kafka-ui-react-app/src/serviceWorker.ts @@ -42,7 +42,6 @@ function registerValidSW(swUrl: string, config?: Config) { // 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. - // eslint-disable-next-line no-console console.log( 'New content is available and will be used when all ' + 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' @@ -56,7 +55,6 @@ function registerValidSW(swUrl: string, config?: Config) { // At this point, everything has been precached. // It's the perfect time to display a // "Content is cached for offline use." message. - // eslint-disable-next-line no-console console.log('Content is cached for offline use.'); // Execute callback @@ -69,7 +67,6 @@ function registerValidSW(swUrl: string, config?: Config) { }; }) .catch((error) => { - // eslint-disable-next-line no-console console.error('Error during service worker registration:', error); }); } @@ -98,7 +95,6 @@ function checkValidServiceWorker(swUrl: string, config?: Config) { } }) .catch(() => { - // eslint-disable-next-line no-console console.log( 'No internet connection found. App is running in offline mode.' ); @@ -127,7 +123,6 @@ export function register(config?: Config) { // Add some additional logging to localhost, pointing developers to the // service worker/PWA documentation. navigator.serviceWorker.ready.then(() => { - // eslint-disable-next-line no-console console.log( 'This web app is being served cache-first by a service ' + 'worker. To learn more, visit https://bit.ly/CRA-PWA'