| | |
| | | // 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' |
| | | 'This web app is being served cache-first by a service worker. To learn more, visit https://bit.ly/CRA-PWA' |
| | | ); |
| | | }); |
| | | } else { |
| | |
| | | // 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.' |
| | | 'New content is available and will be used when all tabs for this page are closed. See https://bit.ly/CRA-PWA.' |
| | | ); |
| | | |
| | | // Execute callback |