From 7f31876ed7d845d44ac3f3a578083781ead42daa Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Sun, 26 Jan 2025 19:01:49 +0100 Subject: [PATCH] fix(WebTerminal): don't send resize event --- src/components/WebTerminal.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/WebTerminal.tsx b/src/components/WebTerminal.tsx index 97d7874..394011e 100644 --- a/src/components/WebTerminal.tsx +++ b/src/components/WebTerminal.tsx @@ -75,13 +75,13 @@ export default function WebTerminal() { } }); - window.addEventListener("resize", () => { - fitAddon.fit(); - }); + // window.addEventListener("resize", () => { + // fitAddon.fit(); + // }); - terminal.onResize(({ rows, cols }) => { - socket.send(JSON.stringify({ rows, cols })); - }); + // terminal.onResize(({ rows, cols }) => { + // socket.send(JSON.stringify({ rows, cols })); + // }); return () => { socket.close();