- From: Matt Falkenhagen <notifications@github.com>
- Date: Thu, 02 Apr 2015 20:56:08 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Friday, 3 April 2015 03:56:29 UTC
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