mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-30 23:06:10 +03:00
Fix service worker to load from absolute url.
This commit is contained in:
parent
b58fb84f4a
commit
5679d642b4
@ -6,7 +6,7 @@
|
||||
<script>
|
||||
if ("serviceWorker" in navigator) {
|
||||
window.addEventListener("load", () => {
|
||||
navigator.serviceWorker.register("./service-worker.js");
|
||||
navigator.serviceWorker.register("/service-worker.js");
|
||||
});
|
||||
} else {
|
||||
console.log("No service worker registered.");
|
||||
|
Loading…
Reference in New Issue
Block a user