mirror of
https://github.com/AEPKILL/devtools-detector.git
synced 2026-04-26 23:15:48 +03:00
[GH-ISSUE #69] launch() doesnt work if we navigate keeping the developer tools already open #141
Labels
No labels
bug
bug
enhancement
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/devtools-detector#141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mohiyuddinshaikh on GitHub (Mar 13, 2024).
Original GitHub issue: https://github.com/AEPKILL/devtools-detector/issues/69
The library works perfectly when you open the devtools.
But say in my react app, i am on page A where devtools is allowed. So devtools is open.
I then navigate to page B where devtools is not allowed and where I am using the library, but this time it doesnt detect that devtools was already open and hence user can access dev tools where I dont want them to.
@AEPKILL commented on GitHub (Mar 20, 2024):
You need to remember the previous status of devtools because the message won't trigger unless devtools status has changed.
Example