- From: Inian <notifications@github.com>
- Date: Tue, 19 Jul 2016 10:12:50 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Tuesday, 19 July 2016 17:13:22 UTC
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