From 21d17b2d04abadf1d417d9c4339beabf3bc8be4b Mon Sep 17 00:00:00 2001 From: tackchen Date: Thu, 6 Jan 2022 00:14:45 +0800 Subject: [PATCH] feat: 0.2.2 --- helper/debug.html | 3 +++ helper/todo.md | 9 ++++++++ helper/version.en.md | 2 +- helper/version.md | 2 +- index.html | 2 +- npm/disable-devtool.min.js | 2 +- npm/package.json | 2 +- package.json | 2 +- src/detector/date-to-string.js | 6 +++--- src/detector/debugger.js | 6 +++--- src/detector/detector.js | 38 ++++++++++++---------------------- src/detector/func-to-string.js | 6 +++--- src/utils/util.js | 18 ---------------- src/version.js | 2 +- 14 files changed, 41 insertions(+), 59 deletions(-) create mode 100644 helper/todo.md diff --git a/helper/debug.html b/helper/debug.html index eb3cf37..0f83e8f 100644 --- a/helper/debug.html +++ b/helper/debug.html @@ -36,6 +36,9 @@ // next(); // console.log(next); }, + ondevtoolclose: function(){ + text.innerHTML = 'devtool closed!' + }, clearIntervalWhenDevOpenTrigger: false, interval: 1000, // tkName: 'ddtk', diff --git a/helper/todo.md b/helper/todo.md new file mode 100644 index 0000000..66afd43 --- /dev/null +++ b/helper/todo.md @@ -0,0 +1,9 @@ + +1. 问题:ios真机chrome 浏览器 data-to-string 和 func-to-string两个detector与开发者工具表现一致 diff --git a/helper/version.en.md b/helper/version.en.md index 71d9f60..8ca0d9d 100644 --- a/helper/version.en.md +++ b/helper/version.en.md @@ -80,7 +80,7 @@ 3. Refactor the code 4. Fix the problem caused by the method on the console cannot be cached by ie -## 0.2.1 +## 0.2.1 - 0.2.2 1. Add ondevtoolclose configuration 2. Add isDevToolOpened api 3. Fix the accidental injury problem of ios mobile chrome diff --git a/helper/version.md b/helper/version.md index e0ee143..5bd8ca1 100644 --- a/helper/version.md +++ b/helper/version.md @@ -81,7 +81,7 @@ 3. 重构代码 4. 修复ie不能缓存console上的方法导致的问题 -## 0.2.1 +## 0.2.1 - 0.2.2 1. 增加 ondevtoolclose 配置 2. 增加 isDevToolOpened api 3. 修复 ios mobile chrome 的误伤问题 diff --git a/index.html b/index.html index 28db517..c2a81a0 100644 --- a/index.html +++ b/index.html @@ -183,7 +183,7 @@ declare type DETECTOR_TYPE = -1 | 0 | 1 | 2 | 3 | 4 | 5;