- From: Jungkee Song <notifications@github.com>
- Date: Wed, 07 Sep 2016 20:06:39 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Thursday, 8 September 2016 03:07:07 UTC
@slightlyoff, I think we can do something like this: ```js self.onfetch = e => { if (e.request.destination === 'document') { // This is a navigation. clients.get(e.targetClientId).then(client => { if (client.ancestorOrigins.length === 0) { // And it's a top-level. } }); } }; ``` -- 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/870#issuecomment-245481277
Received on Thursday, 8 September 2016 03:07:07 UTC