Re: [slightlyoff/ServiceWorker] Is a new property to get the navigation's target client needed? (#817)

I think we should have both btw. `clientId` should represent the client that initiated the request, and `potentialClientId` should be populated if the result *may* create a new client.

This means:

```js
if (fetchEvent.request.mode == 'navigate' && fetchEvent.clientId && fetchEvent.potentialClientId) {
  clients.matchAll().then(clients => {
    if (clients.length == 1) {
      // there's a single page open, and it's in the process of navigating
    }
  })
}
```

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/817#issuecomment-206396683

Received on Wednesday, 6 April 2016 14:24:08 UTC