fix: simplify index.html structure
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user