[push-api] .getRegistration() should not reject if there is no registration (but return a null object) (#96)

CC @jakearchibald

It seems to be the pattern generally being used with Promises. Rejecting should be an exceptional case. In that case, having no registration isn't exceptional, it's definitely expected.

Also, as @jakearchibald pointed, it would allow to do things like that in ES7:
```javascript
var reg = await push.getRegistration();
```

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/issues/96

Received on Monday, 15 December 2014 13:58:58 UTC