diff --git a/src/assets/js/main.js b/src/assets/js/main.js index 65d0bd1f0..1697accbf 100644 --- a/src/assets/js/main.js +++ b/src/assets/js/main.js @@ -26,7 +26,7 @@ mediumZoom(images, { search(); if (navigator.serviceWorker) { - navigator.serviceWorker.register("sw.js", { scope: "/" }); + navigator.serviceWorker.register(location.origin+"/sw.js", { scope: location.origin }); } if ( diff --git a/src/site/_includes/partials/head.liquid b/src/site/_includes/partials/head.liquid index ca8ba4304..320aff5ed 100644 --- a/src/site/_includes/partials/head.liquid +++ b/src/site/_includes/partials/head.liquid @@ -32,7 +32,6 @@ } else { document.documentElement.classList.remove('dark') } -}