- From: Mounir Lamouri <notifications@github.com>
- Date: Mon, 15 Dec 2014 10:19:11 -0800
- To: w3c/push-api <push-api@noreply.github.com>
Received on Monday, 15 December 2014 18:19:41 UTC
Because then you can easily check if the call was a no-op or not... If you have a ```pushRegistration``` instance, you can just call ```pushRegistration.unregister().then(function(b) {...});``` and use ```b``` to know whether the unregistration happened instead of doing ```navigator.push.getRegistration().then(function(r) { return r ? r.unregister() : null; }).then(function() { ... });```. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/push-api/pull/97#issuecomment-67039200
Received on Monday, 15 December 2014 18:19:41 UTC