From 66dc4cdfbfdbdbc85492abb7f7789b6bc7503d30 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 11:09:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=BB=E5=BA=95=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=89=80=E6=9C=89=E8=B0=83=E8=AF=95console.log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/web_panel/home.html | 2 +- static/web_panel/js/app.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/static/web_panel/home.html b/static/web_panel/home.html index 1c5bf5c..58f3395 100644 --- a/static/web_panel/home.html +++ b/static/web_panel/home.html @@ -79,6 +79,6 @@ - + diff --git a/static/web_panel/js/app.js b/static/web_panel/js/app.js index 16170f2..c4df3df 100644 --- a/static/web_panel/js/app.js +++ b/static/web_panel/js/app.js @@ -124,7 +124,6 @@ async function loadPage(pageName) { var cleanHtml = html.replace(/]*>([\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 = '
'+clean+'
'; - 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(/]*>([\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){} });