diff --git a/assets/manifest.json b/assets/manifest.json index 6a137ac..3e0314f 100644 --- a/assets/manifest.json +++ b/assets/manifest.json @@ -1,14 +1,14 @@ { "name": "{{ .Site.Title }}", "short_name": "{{ .Site.Title }}", - "start_url": "{{ "/" | relURL }}", - "scope": "{{ "/" | relURL }}", + "start_url": "{{ "./" | relURL }}", + "scope": "{{ "./" | relURL }}", "display": "standalone", "background_color": "#000000", "theme_color": "#000000", "icons": [ { - "src": "{{ "/favicon.svg" | relURL }}", + "src": "{{ "./favicon.svg" | relURL }}", "sizes": "512x512" } ] diff --git a/assets/sw-register.js b/assets/sw-register.js index b67dbfd..e5d1761 100644 --- a/assets/sw-register.js +++ b/assets/sw-register.js @@ -2,6 +2,6 @@ if (navigator.serviceWorker) { navigator.serviceWorker.register( "{{ $swJS.RelPermalink }}", - { scope: "{{ "/" | relURL }}" } + { scope: "{{ "./" | relURL }}" } ); }