disable-devtool icon indicating copy to clipboard operation
disable-devtool copied to clipboard

False positives are possible?

Open ela738362 opened this issue 5 months ago • 1 comments

Hello,

I’m currently integrating your library into a Next.js 15 project using the following setup:

disableDevtool({
  url: `/${lang}/warning`,
  ondevtoolopen: async (type: unknown, next: () => void) => {
    await logEvent({
      name: 'DEVTOOL OPEN',
      metadata: {
        // ...
      },
    });
    next();
  },
});

This setup logs an event and redirects the user to a warning page whenever the developer tools are opened. However, I’ve received feedback from a user who was alarmed by the redirect, insisting they weren’t doing anything malicious.

Could there be false positives with this detection? Is it possible for the devtool trigger to activate under benign circumstances? I’d appreciate any insights you can provide.

Thank you!

ela738362 avatar Jul 26 '25 16:07 ela738362

@ela738362 What version of QQ Browser is it? I am using 19.4.5 and it works fine here. Image

theajack avatar Jul 29 '25 23:07 theajack