feat: 0.1.3

This commit is contained in:
tackchen 2021-03-10 16:42:35 +08:00
parent 123bee623e
commit c1cf7b73ee
8 changed files with 11 additions and 7 deletions

View File

@ -42,3 +42,6 @@
## 0.1.2
1. 加上document的判断 以适应服务端渲染 npm 调用
## 0.1.3
1. 修复 disableMenu 参数无效的bug

View File

@ -178,7 +178,7 @@ disableDevtool(options);</code></p>
<script
disable-devtool-auto
md5='1aabac6d068eef6a7bad3fdf50a05cc8'
src='https://cdn.jsdelivr.net/npm/disable-devtool@0.1.2/disable-devtool.min.js#use'
src='https://cdn.jsdelivr.net/npm/disable-devtool@0.1.3/disable-devtool.min.js#use'
></script>
<!-- <script disable-devtool-auto md5='1aabac6d068eef6a7bad3fdf50a05cc8' src='./npm/disable-devtool.min.js'></script> -->
<script>

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "disable-devtool",
"version": "0.1.2",
"version": "0.1.3",
"description": "Disable web developer tools from the f12 button, right-click and browser ",
"main": "disable-devtool.min.js",
"unpkg": "disable-devtool.min.js",

View File

@ -1,6 +1,6 @@
{
"name": "disable-devtool",
"version": "0.1.2",
"version": "0.1.3",
"description": "Disable web developer tools from the f12 button, right-click and browser ",
"main": "disable-devtool.min.js",
"unpkg": "disable-devtool.min.js",

View File

@ -11,6 +11,7 @@ disableDevtool({
// },
interval: 1000,
tkName: 'xx',
// disableMenu: false
// url: 'https://www.baidu.com'
});

View File

@ -12,7 +12,7 @@ export let config = {
export function mergeConfig (opts = {}) {
for (let k in config) {
if (opts[k] && typeof config[k] === typeof opts[k]) {
if (typeof opts[k] !== 'undefined' && typeof config[k] === typeof opts[k]) {
config[k] = opts[k];
}
}

View File

@ -1 +1 @@
export default '0.1.2';
export default '0.1.3';