On 11 July 2014 17:59, Jonas Sicking <jo...@sicking.cc> wrote: > On Fri, Jul 11, 2014 at 8:17 AM, Jake Archibald <jaffathec...@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)