pusher / push-notifications-web

Beams Browser notifications
MIT License
39 stars 19 forks source link

Await the provided service worker on init #70

Closed jonathanlloyd closed 4 years ago

jonathanlloyd commented 4 years ago

We weren't awaiting custom service workers when one was provided. This meant that the SDK would return bad state whilst the service worker was registering.

This PR awaits the provided sw in _init so that other methods will block until it is ready