Skip to content

Commit

Permalink
Fix service worker scope
Browse files Browse the repository at this point in the history
  • Loading branch information
atotic committed Jan 31, 2024
1 parent fd638d4 commit 37ff27a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@
console.error("file:// has no service worker");
return;
}
navigator.serviceWorker.register("serviceWorker.js", { scope: "/", })
navigator.serviceWorker.register("serviceWorker.js", { scope: "./", })
.then( reg => {
let registration = reg;
})
Expand Down

0 comments on commit 37ff27a

Please sign in to comment.