theajack / disable-devtool

Disable web developer tools from the f12 button, right-click and browser menu
https://theajack.github.io/disable-devtool/
MIT License
1.92k stars 184 forks source link

配置了 `tkName` & `md5` 没有生效 #63

Closed paopaolee closed 1 year ago

paopaolee commented 1 year ago

` import disableDevtool from 'disable-devtool';

disableDevtool({ url: location.origin, md5: "xxxx", tkName: "debug", disableSelect: true,// Whether to disable selection text Default is false disableCopy: true, // Whether to disable copying, default is false disableCut: true, // Whether to disable cutting, default is false disablePaste: true, // Whether to disable paste, default is false }); 上面是我的代码配置,当我在页面地址加上?debug=xxxx`时无法un-disable

paopaolee commented 1 year ago

@theajack

theajack commented 1 year ago

debug=md5的原值 才可以