mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-06 04:10:13 +00:00
Close the tab when exiting
This commit is contained in:
@@ -334,6 +334,10 @@ export default function SshClient({
|
|||||||
setConnecting(false);
|
setConnecting(false);
|
||||||
if (authConfirmed) {
|
if (authConfirmed) {
|
||||||
setConnected(false);
|
setConnected(false);
|
||||||
|
if (evt.wasClean || evt.code === 1000) {
|
||||||
|
window.close();
|
||||||
|
return;
|
||||||
|
}
|
||||||
xtermRef.current?.writeln(
|
xtermRef.current?.writeln(
|
||||||
`\r\n\x1b[33m${t("sshConnectionClosedCode", { code: evt.code })}\x1b[0m\r\n`
|
`\r\n\x1b[33m${t("sshConnectionClosedCode", { code: evt.code })}\x1b[0m\r\n`
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user