- From: Jake Archibald <notifications@github.com>
- Date: Tue, 20 Mar 2018 04:54:47 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 20 March 2018 11:55:09 UTC
```js self.addEventListener('push', e => { self.onfetch = e => { // A push event will add this fetch listener. }; }); ``` If we consider the above service worker "has a fetch listener", this would happen: 1. Controlled document makes a fetch. 1. We start up the service worker, because it has a fetch listener. 1. We despatch the 'fetch' event. 1. There is no listener. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/371#issuecomment-374570746
Received on Tuesday, 20 March 2018 11:55:09 UTC