fix: simplify index.html structure

This commit is contained in:
2026-03-21 23:27:00 +08:00
parent d6f3549a53
commit a819563382

View File

@@ -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);
}