- From: Matt Gaunt <notifications@github.com>
- Date: Wed, 13 Dec 2017 17:28:16 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 14 December 2017 01:28:39 UTC
Two cents. I'm not sold that `navigator.serviceWorker.waiting` is the right naming here.
I would actually prefer some way of listener for changes for the service worker that updating along the lines of:
```javascript
reg.addEventListener('updatestatechange', (event) => {
  switch(event.state) {
    case 'installing':
      break;
    case 'waiting':
      break;
    case 'activating':
      break;
    case 'activated':
      break;
  }
});
```
-- 
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/1222#issuecomment-351579926
Received on Thursday, 14 December 2017 01:28:39 UTC