Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add registered event #3

Merged
merged 1 commit into from
Jun 1, 2018

Conversation

alexlanz
Copy link
Contributor

@alexlanz alexlanz commented Jun 1, 2018

In some use cases it would be nice to know when the service worker was registered. Especially, if the two other events (cached, updated) are not fired. This happens when the browser already has the newest assets stored in the cache.

In this case there is no possibility with this library to access the registration. With the new event, the registration gets passed immediately after the registration.

@yyx990803 yyx990803 merged commit 6be9f87 into yyx990803:master Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants