mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-24 12:23:00 +00:00
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
@ -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 New Issue
Block a user