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;