Re: [w3c/ServiceWorker] Provide a one-line way to listen for a waiting Service Worker (#1222)

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