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

> If getRegistration() fails, one advantage of a rejection is that it gives you somewhere to hang the meta-information about that failure: is this because you are on an http:// origin?

That won't happen, as this API sits on the ServiceWorker registration, which requires https. But yes, if there's a failure to even find out there's no registration, that should be a rejection (as it would be a throw in sync code).

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

Received on Monday, 15 December 2014 19:45:58 UTC