mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-24 18:21:33 +00:00
Change module import
This commit is contained in:
@ -64,7 +64,9 @@ fn app(name: &str) {
|
||||
|
||||
/// Entry point into the program from JavaScript
|
||||
#[wasm_bindgen(start)]
|
||||
pub fn run() {
|
||||
pub fn run() -> Result<(), JsValue> {
|
||||
console_error_panic_hook::set_once();
|
||||
app("todos-wasmbindgen");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user