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

The init code force the browser tab be closed #83

Open
gezichenshan opened this issue Feb 20, 2024 · 3 comments
Open

The init code force the browser tab be closed #83

gezichenshan opened this issue Feb 20, 2024 · 3 comments

Comments

@gezichenshan
Copy link

import DisableDevtool from "disable-devtool"
DisableDevtool({ md5: "75edd0df185c0b8ecf13b27365ee11b6" })

The code above will close the tab.

Then I added:

...
  DisableDevtool({
    ondevtoolopen: type => {
      const info = "devtool opened!; type =" + type
      alert(info) // If you are worried about blocking the page, use console.warn(info); and open the console to view
    },
  })

It always let the page alert message constantly jump between:

devtool opened!; type =3
devtool opened!; type =4
@theajack
Copy link
Owner

Please send me the browser and version number you are using. @gezichenshan

@gezichenshan
Copy link
Author

Chrome 121.0.6167.185(正式版本) (64 位)
Win11

Same happened on Edge

@theajack
Copy link
Owner

https://theajack.github.io/disable-devtool

用这个链接复现吗 @gezichenshan

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