Skip to content

Commit e5c19d4

Browse files
authored
Merge pull request #56 from Sansossio/fix/typo
fix: Fix typo in warn ([#56](#56))
2 parents 7479601 + 930adbe commit e5c19d4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"release": "node scripts/push-release.js"
1212
},
1313
"name": "disable-devtool",
14-
"version": "0.3.4",
14+
"version": "0.3.5",
1515
"description": "Disable web developer tools from the f12 button, right-click and browser ",
1616
"main": "disable-devtool.min.js",
1717
"unpkg": "disable-devtool.min.js",

src/detector/detector.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ export abstract class Detector {
3030
}
3131

3232
onDevToolOpen () {
33-
console.warn(`You ar not allow to use DEVTOOL! 【type = ${this.type}】`);
34-
// alert(`You ar not allow to use DEVTOOL! 【type = ${type}】`);
33+
console.warn(`You don't have permission to use DEVTOOL!【type = ${this.type}】`);
3534
if (config.clearIntervalWhenDevOpenTrigger) {
3635
clearDDInterval();
3736
}

0 commit comments

Comments
 (0)