fix: empty values on desktop

This commit is contained in:
Jonathan Kelley committed 2022-02-15 13:38:06 -05:00
1 parent 0981828167
commit a6cbe233b7
3 files changed
+3 -4

No files matched your search

-2
View File
@@ -99,8 +99,6 @@ impl DesktopController {
view.evaluate_script(&format!("window.interpreter.handleEdits({})", edit))
.unwrap();
}
} else {
println!("waiting for ready");
}
}
}
+1 -2
View File
@@ -23,8 +23,7 @@ impl IpcMessage {
}
pub(crate) fn parse_ipc_message(payload: &str) -> Option<IpcMessage> {
let mm = serde_json::from_str(payload);
match mm {
match serde_json::from_str(payload) {
Ok(message) => Some(message),
Err(e) => {
log::error!("could not parse IPC message, error: {e}");