From cc0ac6c8337e3dfea740feb0385d4a14e737d77c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 22 Nov 2019 15:16:14 -0500 Subject: resize the browser terminal if the streamer terminal is resized --- teleterm/src/web.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'teleterm/src/web.rs') diff --git a/teleterm/src/web.rs b/teleterm/src/web.rs index 6cc9568..89291c5 100644 --- a/teleterm/src/web.rs +++ b/teleterm/src/web.rs @@ -377,12 +377,9 @@ impl msg: &crate::protocol::Message, ) -> Result> { match msg { - crate::protocol::Message::TerminalOutput { .. } => { - let json = serde_json::to_string(msg) - .context(crate::error::SerializeMessage)?; - Ok(Some(tungstenite::Message::Text(json))) - } - crate::protocol::Message::Disconnected => { + crate::protocol::Message::TerminalOutput { .. } + | crate::protocol::Message::Disconnected + | crate::protocol::Message::Resize { .. } => { let json = serde_json::to_string(msg) .context(crate::error::SerializeMessage)?; Ok(Some(tungstenite::Message::Text(json))) -- cgit v1.2.3-54-g00ecf