mirror of
https://github.com/CyberL1/dlinux-dashboard.git
synced 2025-02-22 11:29: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", () => {
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user