Skip to content

Commit

Permalink
Update register-sw.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BalmaBrian committed Jan 17, 2021
1 parent 88df839 commit 96d3dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/javascript/register-sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if (navigator.serviceWorker.controller) {
console.log("Active Service worker found");
} else {
navigator.serviceWorker
.register(serviceWorker.js, { scope: ".././" })
.register("./serviceWorker.js", { scope: ".././" })
.then(function (reg) {
console.log("Service worker registered");
});
Expand Down

0 comments on commit 96d3dcf

Please sign in to comment.