fix server worker is blocked (#565)
* fix server worker is blocked * Also use relURL in manifest --------- Co-authored-by: Alex Shpak <alex-shpak@users.noreply.github.com>
This commit is contained in:
parent
3f1bcccbfb
commit
14e14f60ae
2 changed files with 4 additions and 4 deletions
|
@ -1,14 +1,14 @@
|
||||||
{
|
{
|
||||||
"name": "{{ .Site.Title }}",
|
"name": "{{ .Site.Title }}",
|
||||||
"short_name": "{{ .Site.Title }}",
|
"short_name": "{{ .Site.Title }}",
|
||||||
"start_url": "{{ "/" | relURL }}",
|
"start_url": "{{ "./" | relURL }}",
|
||||||
"scope": "{{ "/" | relURL }}",
|
"scope": "{{ "./" | relURL }}",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"background_color": "#000000",
|
"background_color": "#000000",
|
||||||
"theme_color": "#000000",
|
"theme_color": "#000000",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "{{ "/favicon.svg" | relURL }}",
|
"src": "{{ "./favicon.svg" | relURL }}",
|
||||||
"sizes": "512x512"
|
"sizes": "512x512"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
if (navigator.serviceWorker) {
|
if (navigator.serviceWorker) {
|
||||||
navigator.serviceWorker.register(
|
navigator.serviceWorker.register(
|
||||||
"{{ $swJS.RelPermalink }}",
|
"{{ $swJS.RelPermalink }}",
|
||||||
{ scope: "{{ "/" | relURL }}" }
|
{ scope: "{{ "./" | relURL }}" }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue