fix: close terminal if only when pty is present
mellbacon committed
Aug 18, 2024 at 16:23 UTC
44fc3234d1ffd83bdc9c1199d527c3b31af97359
1 file changed
+1
-1
src/lib/Terminal.svelte
+1
-1
@@ -31,7 +31,7 @@ export function clearTerminal() {
31
}
32
33
export function closeTerminal() {
34
- pty.kill();
34
+ if (pty) pty.kill();
35
}
36
37
export function updateTermTheme() {