diff options
Diffstat (limited to 'src/console.rs')
-rw-r--r-- | src/console.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/console.rs b/src/console.rs new file mode 100644 index 0000000..4efbd80 --- /dev/null +++ b/src/console.rs @@ -0,0 +1,5 @@ +use wasm_bindgen::prelude::JsValue; + +pub fn log(str: &str) { + web_sys::console::log_1(&JsValue::from_str(str)); +} |