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

Warn if other tabs under control of your SW are open #601

Closed
paulirish opened this issue Aug 17, 2016 · 2 comments
Closed

Warn if other tabs under control of your SW are open #601

paulirish opened this issue Aug 17, 2016 · 2 comments
Assignees

Comments

@paulirish
Copy link
Member

Following up from #598

If there are other tabs open, then we're unable to remove a serviceworker from play. It'll come back to life.

We'd like to warn the user to close any additional tabs that may be under control of the worker. We can use:

And we'll be looking for other tabs that may be under control of the SW. We could use the registration's scopeURL and/or the site's origin and look for potential matches.

@paulirish
Copy link
Member Author

the workerVersionUpdated event (i think) returns an array of clients for the SW. We can see if there are more clients connected.

@wardpeet
Copy link
Collaborator

I'm up for this one :)

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

No branches or pull requests

2 participants