Skip to content

Commit

Permalink
Merge branch 'master' of github.com:theajack/disable-devtool
Browse files Browse the repository at this point in the history
  • Loading branch information
theajack committed Jun 21, 2023
2 parents 6838d55 + e5c19d4 commit 75b4e6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -11,7 +11,7 @@
"release": "node scripts/push-release.js"
},
"name": "disable-devtool",
"version": "0.3.4",
"version": "0.3.5",
"description": "Disable web developer tools from the f12 button, right-click and browser ",
"main": "disable-devtool.min.js",
"unpkg": "disable-devtool.min.js",
Expand Down
3 changes: 1 addition & 2 deletions src/detector/detector.ts
Expand Up @@ -30,8 +30,7 @@ export abstract class Detector {
}

onDevToolOpen () {
console.warn(`You ar not allow to use DEVTOOL! 【type = ${this.type}】`);
// alert(`You ar not allow to use DEVTOOL! 【type = ${type}】`);
console.warn(`You don't have permission to use DEVTOOL!【type = ${this.type}】`);
if (config.clearIntervalWhenDevOpenTrigger) {
clearDDInterval();
}
Expand Down

0 comments on commit 75b4e6c

Please sign in to comment.