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

False negative on page load #37

Closed
emattias opened this issue May 11, 2020 · 1 comment · Fixed by #38
Closed

False negative on page load #37

emattias opened this issue May 11, 2020 · 1 comment · Fixed by #38

Comments

@emattias
Copy link

When I load the page with devtools open I get this result:

import devtoolsDetect from 'devtools-detect';

console.log(devtoolsDetect.isOpen) // false

I think its because the code if delayed by 500ms.

Could we maybe make the first run be run immediately or add an event for when the devtools detection code has actually been run?

@sindresorhus
Copy link
Owner

Could we maybe make the first run be run immediately

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants