A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: lets try a different service worker scope

+2 -2
+2 -2
src/components/orchestrator/offline/element.js
··· 14 14 * 15 15 * Attributes: 16 16 * cache-name Name of the cache to use (default: "diffuse-offline") 17 - * scope Service worker scope (default: document.baseURI ?? "./") 17 + * scope Service worker scope (default: "./") 18 18 * src URL of the service worker script (default: built-in service-worker.js) 19 19 * Must be served from a path within the requested scope, or the server 20 20 * must include a `Service-Worker-Allowed: /` response header. ··· 31 31 if (!("serviceWorker" in navigator)) return; 32 32 33 33 const cacheName = this.getAttribute("cache-name") ?? "diffuse-offline"; 34 - const scope = this.getAttribute("scope") ?? document.baseURI ?? "./"; 34 + const scope = this.getAttribute("scope") ?? "./"; 35 35 const src = this.getAttribute("src"); 36 36 37 37 const swUrl = new URL(