-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
STATUS-1: needs triageNew issue which needs to be triagedNew issue which needs to be triagedTYPE: bugSomething isn't workingSomething isn't working
Description
Which component is affected?
Qwik Runtime
Describe the bug
navigator.serviceWorker.register("/service-worker.js")is not being generated in qwik 1.16.0
qwik 1.15.0
<script type="module" q:key="7s_7" q:head>
"serviceWorker"in navigator ? navigator.serviceWorker.register("/service-worker.js").catch(r => console.error(r)) : console.log("Service worker not supported in this browser.")
</script>
qwik 1.16.0
<script type="module" q:key="5B_7" q:head>
"serviceWorker"in navigator && navigator.serviceWorker.getRegistrations().then(r => {
for (const e of r) {
const c = "/service-worker.js".split("/").pop();
e.active?.scriptURL.endsWith(c || "service-worker.js") && e.unregister().catch(console.error)
}
}
),
"caches"in window && caches.keys().then(r => {
const e = r.find(c => c.startsWith("QwikBuild"));
e && caches.delete(e).catch(console.error)
}
).catch(console.error)
</script>
Reproduction
n/a
Steps to reproduce
build with service worker and 1.16.0
System Info
qwik 1.16.0
Additional Information
No response
Metadata
Metadata
Assignees
Labels
STATUS-1: needs triageNew issue which needs to be triagedNew issue which needs to be triagedTYPE: bugSomething isn't workingSomething isn't working