fix: empty values on desktop

This commit is contained in:
Jonathan Kelley 2022-02-15 13:38:06 -05:00
parent 0981828167
commit a6cbe233b7
3 changed files with 3 additions and 4 deletions

View file

@ -99,8 +99,6 @@ impl DesktopController {
view.evaluate_script(&format!("window.interpreter.handleEdits({})", edit))
.unwrap();
}
} else {
println!("waiting for ready");
}
}
}

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}");

View file

@ -486,6 +486,8 @@ pub mod on {
#[derive(Debug)]
pub struct FormData {
pub value: String,
#[serde(default)]
pub values: HashMap<String, String>,
/* DOMEvent: Send + SyncTarget relatedTarget */
}