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 isDevTools #22

Closed
fregante opened this issue Nov 10, 2023 · 0 comments · Fixed by #26
Closed

Add isDevTools #22

fregante opened this issue Nov 10, 2023 · 0 comments · Fixed by #26
Labels
enhancement New feature or request

Comments

@fregante
Copy link
Owner

fregante commented Nov 10, 2023

isDevToolsPage() is only true on the devtools_page specified in the manifest, but most code is run in another document.

const isDevTools = () => Boolean(globalThis.chrome?.devtools)
@fregante fregante added the enhancement New feature or request label Nov 10, 2023
@fregante fregante mentioned this issue Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant