Re: [push-api] Moving "PushManager push" onto ServiceWorkerRegistration

On 11 July 2014 17:59, Jonas Sicking <jonas@sicking.cc> wrote:

> On Fri, Jul 11, 2014 at 8:17 AM, Jake Archibald <jaffathecake@gmail.com>
> wrote:
> > navigator.serviceWorker.ready.then(function(reg) {
> >   reg.push.register(...)
> > });
>
> I agree this looks good. Though maybe
>
> reg.registerPush(...)
>
> instead?
>

.push also has .unregister, will probably have .hasPermission too.

(the current spec has .registrations, but I believe one registration per
serivceworker is the rule now)

Received on Friday, 11 July 2014 17:08:42 UTC