This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const APP = { | |
| SW: null, | |
| cacheName: 'assetCache1', | |
| init() { | |
| //called after DOMContentLoaded | |
| // if ('serviceWorker' in navigator) { | |
| // // Register a service worker hosted at the root of the | |
| // // site using the default scope. | |
| // navigator.serviceWorker.register('/sw.js').then( | |
| // (registration) => { |