- From: Jake Archibald <notifications@github.com>
- Date: Wed, 06 Apr 2016 07:23:21 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 6 April 2016 14:24:08 UTC
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