refac
This commit is contained in:
1 parent
4f6cb771f1
commit
1a2b360d3d
4 files changed
+18
-49
No files matched your search
@@ -239,6 +239,16 @@
|
||||
connect();
|
||||
};
|
||||
|
||||
// Reconnect when the selected terminal changes
|
||||
$: if ($selectedTerminalId !== undefined && term) {
|
||||
// Clear the terminal screen and reconnect to the new server
|
||||
disconnect();
|
||||
term.clear();
|
||||
if ($selectedTerminalId) {
|
||||
connect();
|
||||
}
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
initTerminal();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user