diff --git a/src/renderer/src/main.js b/src/renderer/src/main.js index 11bbad5..52fbcd5 100644 --- a/src/renderer/src/main.js +++ b/src/renderer/src/main.js @@ -56,7 +56,7 @@ VMdPreview.use(githubTheme, { }); (function () { - if (!['development', 'mock'].includes(process.env.NODE_ENV)&&import.meta.env.VITE_SHOW_DEV_TOOLS==='true') { + if (import.meta.env.VITE_SHOW_DEV_TOOLS==='false') { ['log', 'warn', 'error', 'info'].forEach((item) => { console[item] = (function (func) { const res = localStorage.getItem('debug');