From a81956338263b3a1c25b69b328a84d0f87db4fde Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Sat, 21 Mar 2026 23:27:00 +0800 Subject: [PATCH] fix: simplify index.html structure --- src/frontend/index.html | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/frontend/index.html b/src/frontend/index.html index b9d0df7..67574e6 100644 --- a/src/frontend/index.html +++ b/src/frontend/index.html @@ -417,7 +417,7 @@ const addressText = document.createElement('span'); addressText.className = 'pane-address'; - addressText.textContent = shell; + addressText.textContent = ''; statusDiv.appendChild(addressText); const statusIndicator = document.createElement('span'); @@ -562,13 +562,6 @@ }; term.onData((data) => { - if (addressText) { - const trimmed = data.trim(); - const cdMatch = trimmed.match(/^cd\s+(.+)/i); - if (cdMatch && cdMatch[1]) { - addressText.textContent = cdMatch[1].trim(); - } - } if (ws && ws.readyState === WebSocket.OPEN) { ws.send(data); }