mirror of
https://github.com/CyberL1/dlinux-dashboard.git
synced 2025-02-22 19:39:19 -05:00
fix(WebTerminal): don't send resize event
This commit is contained in:
parent
85d70aa393
commit
7f31876ed7
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user