We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e44023 commit ac17eaeCopy full SHA for ac17eae
swreg.js
@@ -1,5 +1,5 @@
1
if ('serviceWorker' in navigator) {
2
- navigator.serviceWorker.register('/sw.js').then(function(registration) {
+ navigator.serviceWorker.register('sw.js').then(function(registration) {
3
// Registration was successful
4
console.log('ServiceWorker registration successful with scope: ', registration.scope);
5
}).catch(function(err) {
0 commit comments