Files: 20738f5c6c86f792bd1d29630749a0e32572a0b6 / 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