@floppy Apparently it's this script: https://github.com/sindresorhus/devtools-detect
From README: ‘This package has a lot of flaws. It used to work better, but browsers changed, and the detection now has too many false-positives.’
Top-level
@floppy Apparently it's this script: https://github.com/sindresorhus/devtools-detect From README: ‘This package has a lot of flaws. It used to work better, but browsers changed, and the detection now has too many false-positives.’ 4 comments
@kytta Also, what if DevTools are opened in a separate window? Then the threshold-criteria in the conditional few lines afterwards will break. https://github.com/sindresorhus/devtools-detect/blob/main/index.js#L25-L26 Don't know what to make of this. :) |
@kytta Iteresting, thanks! I'll have a look!