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

Service worker support #10

Open
NDevTK opened this issue Jun 12, 2022 · 2 comments
Open

Service worker support #10

NDevTK opened this issue Jun 12, 2022 · 2 comments

Comments

@NDevTK
Copy link

NDevTK commented Jun 12, 2022

In the worker context navigator.userAgent still works.

@z0ccc
Copy link
Collaborator

z0ccc commented Jun 12, 2022

How are you testing that? Thanks

@NDevTK
Copy link
Author

NDevTK commented Jun 12, 2022

I have very limited time at the moment...
Went to https://ndev.tk/ then in devtools console changed the context from "top" to "sw.js" and did console.log(navigator.userAgent)

The Target Domain may be helpful to automatically attach to new targets not sure if the debug api can use it.
https://chromedevtools.github.io/devtools-protocol/1-3/Target/#method-setDiscoverTargets
Latest even has https://chromedevtools.github.io/devtools-protocol/tot/Target/#method-setAutoAttach

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