Skip to content

Commit

Permalink
feat: disabled debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny-117 committed Apr 16, 2024
1 parent 6515e7c commit e3f07df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/dist
Submodule dist updated from 4daa95 to eb6f88
2 changes: 1 addition & 1 deletion docs/fragment/disable-debugger.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ eval(
## 🎈 终极增强防调试代码

- 为了让自己写出来的代码更加的晦涩难懂,需要对上面的代码再优化一下
- 将 Function('debugger').call() 改成 (function(){return false;})['constructor']('debugger')['call']();
-`Function('debugger').call()` 改成 `(function(){return false;})['constructor']('debugger')['call']()`;
- 并且添加条件,当窗口外部宽高和内部宽高的差值大于一定的值 ,我把 body 里的内容换成指定内容
- 当然使用的时候,为了更加的安全,最好加密后再使用

Expand Down

0 comments on commit e3f07df

Please sign in to comment.