···1414 *
1515 * Attributes:
1616 * cache-name Name of the cache to use (default: "diffuse-offline")
1717- * scope Service worker scope (default: document.baseURI ?? "./")
1717+ * scope Service worker scope (default: "./")
1818 * src URL of the service worker script (default: built-in service-worker.js)
1919 * Must be served from a path within the requested scope, or the server
2020 * must include a `Service-Worker-Allowed: /` response header.
···3131 if (!("serviceWorker" in navigator)) return;
32323333 const cacheName = this.getAttribute("cache-name") ?? "diffuse-offline";
3434- const scope = this.getAttribute("scope") ?? document.baseURI ?? "./";
3434+ const scope = this.getAttribute("scope") ?? "./";
3535 const src = this.getAttribute("src");
36363737 const swUrl = new URL(