Close the tab when exiting

This commit is contained in:
Owen
2026-06-08 15:07:02 -07:00
parent 859c0c9477
commit 4dbad7ab24

View File

@@ -334,6 +334,10 @@ export default function SshClient({
setConnecting(false);
if (authConfirmed) {
setConnected(false);
if (evt.wasClean || evt.code === 1000) {
window.close();
return;
}
xtermRef.current?.writeln(
`\r\n\x1b[33m${t("sshConnectionClosedCode", { code: evt.code })}\x1b[0m\r\n`
);