Add /sw.js route with send_from_directory to serve service worker from root scope with Service-Worker-Allowed:/ and Cache-Control:no-cache headers. Add navigator.serviceWorker.register() script to index.html with load event listener and scope:/ parameter. Update service worker cache to v4 with media-mark-192.svg/media-mark-512.svg additions to SHELL array. Update manifest.json icons
21 lines
749 B
JSON
21 lines
749 B
JSON
{
|
|
"name": "Media Max",
|
|
"short_name": "Media Max",
|
|
"id": "/",
|
|
"lang": "de",
|
|
"description": "Media Max: Radarr, Sonarr und SABnzbd im Überblick",
|
|
"start_url": "/",
|
|
"scope": "/",
|
|
"display": "standalone",
|
|
"display_override": ["window-controls-overlay", "standalone"],
|
|
"prefer_related_applications": false,
|
|
"background_color": "#151619",
|
|
"theme_color": "#1f252d",
|
|
"orientation": "any",
|
|
"icons": [
|
|
{"src": "/static/media-mark-192.svg", "sizes": "192x192", "type": "image/svg+xml", "purpose": "any"},
|
|
{"src": "/static/media-mark-512.svg", "sizes": "512x512", "type": "image/svg+xml", "purpose": "any"},
|
|
{"src": "/static/media-mark-512.svg", "sizes": "512x512", "type": "image/svg+xml", "purpose": "maskable"}
|
|
]
|
|
}
|