-
-
Notifications
You must be signed in to change notification settings - Fork 251
Open
Description
源代码如下,即使默认返回true也是无效
export const useDevtoolProtection = async () => {
try {
const { default: DisableDevtool } = await import('disable-devtool');
DisableDevtool({
url: 'https://www.baidu.com',
timeOutUrl: 'https://www.baidu.com',
interval: 100,
detectors: 'all',
disableMenu: true,
stopIntervalTime: 5000,
clearIntervalWhenDevOpenTrigger: false,
seo: true,
clearLog: true,
ignore: () => {
return true
}
});
} catch (error) {
console.error('Failed to initialize devtool protection:', error);
}
};
Metadata
Metadata
Assignees
Labels
No labels