serviceWorker file fixed
This commit is contained in:
parent
79033de3ea
commit
a818168eaa
1 changed files with 0 additions and 5 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue