fix(WebTerminal): don't send resize event

This commit is contained in:
CyberL1 2025-01-26 19:01:49 +01:00
parent 85d70aa393
commit 7f31876ed7

View File

@ -75,13 +75,13 @@ export default function WebTerminal() {
} }
}); });
window.addEventListener("resize", () => { // window.addEventListener("resize", () => {
fitAddon.fit(); // fitAddon.fit();
}); // });
terminal.onResize(({ rows, cols }) => { // terminal.onResize(({ rows, cols }) => {
socket.send(JSON.stringify({ rows, cols })); // socket.send(JSON.stringify({ rows, cols }));
}); // });
return () => { return () => {
socket.close(); socket.close();