Re: [slightlyoff/ServiceWorker] Enabling multiple Service Workers for a single scope (#921)

Hey @jakearchibald, I am not sure if I got that fully. You are recommending overriding self.fetch in the main HTML document like this?
```js
const oldFetch = self.fetch;
self.fetch = function () {
    console.log(arguments);
    // handle fetch before any SW script sees it
    return oldFetch.apply(this, arguments);
};
```
I tried this and this patched fetch is not the one picked up by the fetch used in the SW. Were you recommending something else?

---
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/921#issuecomment-233701781

Received on Tuesday, 19 July 2016 17:13:22 UTC