fix: 彻底移除所有调试console.log
This commit is contained in:
@@ -79,6 +79,6 @@
|
||||
<script src="./static/js/chart.js?v=0603"></script>
|
||||
|
||||
<!-- 🟢 2. 再加载主逻辑 -->
|
||||
<script src="./static/js/app.js?v=0709"></script>
|
||||
<script src="./static/js/app.js?v=0710"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -124,7 +124,6 @@ async function loadPage(pageName) {
|
||||
var cleanHtml = html.replace(/<script\b[^>]*>([\s\S]*?)<\/script>/gi, function(m,code){ scripts.push(code.trim()); return ''; });
|
||||
content.innerHTML = cleanHtml;
|
||||
|
||||
scripts.forEach(function(code){ console.log("loadPluginPage executing script from:", pluginName, "length:", code.length);
|
||||
try { var s=document.createElement('script'); s.textContent=code; document.head.appendChild(s); document.head.removeChild(s); }
|
||||
catch(ex){ console.error('Inline script error:', ex); }
|
||||
});
|
||||
@@ -187,7 +186,6 @@ async function loadPluginPage(pluginName) {
|
||||
content.style.padding = '0';
|
||||
content.innerHTML = '<div class="plugin-page-root"><style>'+styles+'</style>'+clean+'</div>';
|
||||
|
||||
scripts.forEach(function(code){ console.log("loadPluginPage executing script from:", pluginName, "length:", code.length);
|
||||
try { var s=document.createElement('script'); s.textContent=code; document.head.appendChild(s); document.head.removeChild(s); }
|
||||
catch(ex){ console.error('Plugin script error:', ex); }
|
||||
});
|
||||
@@ -253,7 +251,6 @@ window.pickPath = function(mode, callback) {
|
||||
var clean = html.replace(/<script\b[^>]*>([\s\S]*?)<\/script>/gi, function(m,code){ scripts.push(code.trim()); return ''; });
|
||||
contentArea.innerHTML = clean;
|
||||
// Execute scripts
|
||||
scripts.forEach(function(code){ console.log("loadPluginPage executing script from:", pluginName, "length:", code.length);
|
||||
try { var s=document.createElement('script'); s.textContent=code; document.head.appendChild(s); document.head.removeChild(s); }
|
||||
catch(ex){}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user