Re: [w3c/ServiceWorker] consider allowing a non-scope identifier for registrations (#1512)

As a compatibility path, what if `id` defaults to the scope?

```js
// Past me did this:
await navigation.serviceWorker.register('/sw.js', {
  scope: '/product/bar',
});

// But it's ok, I can move it:
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-615144592

Received on Friday, 17 April 2020 09:29:24 UTC