Re: [ServiceWorker] A header/something to kill SWs (#614)

FYI I think the current APIs let you implement the equivalent of an ```unregister({immediate:true})``` worker:

```javascript
skipWaiting();
onactivate = function(e) {
  e.waitUntil(clients.claim()
    .then(function() { return self.registration.unregister(); }
    .then(function() { return Promise.reject(); })));
};
```

A more sugary syntax may still be good.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/614#issuecomment-89153038

Received on Friday, 3 April 2015 03:56:29 UTC