- From: Sami <notifications@github.com>
- Date: Mon, 09 Jan 2023 21:36:33 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 10 January 2023 05:36:46 UTC
for me, I tested it within a subdomain, I had the same issue described above, and was able to solve it by changing the
scope: '/', ---> scope: '.',
app.js
....
const registration = await navigator.serviceWorker.register(
'sw.js',
{
scope: '.',
}
...
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1307#issuecomment-1376759072
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/ServiceWorker/issues/1307/1376759072@github.com>
Received on Tuesday, 10 January 2023 05:36:46 UTC