fix
This commit is contained in:
@@ -31,15 +31,15 @@ const SECURITY_WARNING_TEMPLATE = `
|
||||
* http://localhost/?ddtk=pig#/flow/task/started
|
||||
*/
|
||||
export function initAntiDebug(): void {
|
||||
if (import.meta.env.VITE_ENABLE_ANTI_DEBUG !== 'true') {
|
||||
return;
|
||||
}
|
||||
if (import.meta.env.VITE_ENABLE_ANTI_DEBUG !== 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
const debugKey = import.meta.env.VITE_ANTI_DEBUG_KEY || 'pig';
|
||||
const debugKey = import.meta.env.VITE_ANTI_DEBUG_KEY || 'pig';
|
||||
|
||||
DisableDevtool({
|
||||
md5: DisableDevtool.md5(debugKey),
|
||||
disableMenu: false,
|
||||
rewriteHTML: SECURITY_WARNING_TEMPLATE,
|
||||
});
|
||||
DisableDevtool({
|
||||
md5: DisableDevtool.md5(debugKey),
|
||||
disableMenu: false,
|
||||
rewriteHTML: SECURITY_WARNING_TEMPLATE,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user