Files: 1bfb0d193cbe211d8658796595d6f4020592add5 / src / index.js
209 bytesRaw
1 | if ('serviceWorker' in navigator) { |
2 | navigator.serviceWorker.register('/service-worker.js').then(function(registration) { |
3 | console.log('ServiceWorker for offline registered!', registration.scope); |
4 | }); |
5 | } |
6 |
Built with git-ssb-web