- From: Jake Archibald <notifications@github.com>
- Date: Thu, 16 Apr 2020 23:53:01 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 17 April 2020 06:53:13 UTC
I guess it would reject if a service worker changed scope to a scope that already existed on the origin?
```js
await navigation.serviceWorker.register('/sw.js', {
  scope: '/product/bar',
  id: 'product-bar',
});
await navigation.serviceWorker.register('/sw2.js', {
  scope: '/bar',
});
await navigation.serviceWorker.register('/sw.js', {
  scope: '/bar',
  id: 'product-bar',
});
```
-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1512#issuecomment-615076222
Received on Friday, 17 April 2020 06:53:13 UTC