Skip to content

Commit 75aee3e

Browse files
committed
Remove console
1 parent 29eb859 commit 75aee3e

File tree

1 file changed

+3
-6
lines changed
  • bindings/devup-ui-wasm/src

1 file changed

+3
-6
lines changed

bindings/devup-ui-wasm/src/lib.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,24 +82,21 @@ impl Output {
8282
return None;
8383
}
8484

85-
log_str(&format!("css: {:?}", sheet.properties));
86-
log_str(&sheet.create_css());
8785
Some(sheet.create_css())
8886
}
8987
}
9088

9189
#[wasm_bindgen(js_name = "importSheet")]
9290
pub fn import_sheet(sheet_object: JsValue) -> Result<(), JsValue> {
93-
let mut sheet = GLOBAL_STYLE_SHEET.lock().unwrap();
94-
*sheet = serde_wasm_bindgen::from_value(sheet_object)
91+
*GLOBAL_STYLE_SHEET.lock().unwrap() = serde_wasm_bindgen::from_value(sheet_object)
9592
.map_err(|e| JsValue::from_str(e.to_string().as_str()))?;
9693
Ok(())
9794
}
9895

9996
#[wasm_bindgen(js_name = "exportSheet")]
10097
pub fn export_sheet() -> Result<String, JsValue> {
101-
let sheet = GLOBAL_STYLE_SHEET.lock().unwrap();
102-
serde_json::to_string(&*sheet).map_err(|e| JsValue::from_str(e.to_string().as_str()))
98+
serde_json::to_string(&*GLOBAL_STYLE_SHEET.lock().unwrap())
99+
.map_err(|e| JsValue::from_str(e.to_string().as_str()))
103100
}
104101

105102
#[wasm_bindgen(js_name = "importClassMap")]

0 commit comments

Comments
 (0)