Skip to content

Commit ac17eae

Browse files
committed
Fix URL reference to Service worker
Extra '/' made the service worker to be searched from the root
1 parent 7e44023 commit ac17eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swreg.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if ('serviceWorker' in navigator) {
2-
navigator.serviceWorker.register('/sw.js').then(function(registration) {
2+
navigator.serviceWorker.register('sw.js').then(function(registration) {
33
// Registration was successful
44
console.log('ServiceWorker registration successful with scope: ', registration.scope);
55
}).catch(function(err) {

0 commit comments

Comments
 (0)