Replies: 4 comments 1 reply
-
I believe we need to wrap the call to |
Beta Was this translation helpful? Give feedback.
1 reply
-
checked this option (try{}catch{})
Of course, I would like to indicate some additional parameters at startup to avoid this error |
Beta Was this translation helpful? Give feedback.
0 replies
-
the code below will work only the beginning #[cfg_attr(target_arch = "wasm32", wasm_bindgen::prelude::wasm_bindgen(start))]
pub fn main_wasm() {
console_error_panic_hook::set_once();
wasm_logger::init(wasm_logger::Config::default());
log::info!("init");
if let Ok(main_window) = HelloWorld::new() {
log::info!("init-1");
match main_window.run() {
Ok(_)=>{
log::info!("init-2");
}
Err(error)=>{
log::info!("init-3");
log::error!("failed: {:?}", error);
}
}
}
log::info!("started");
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
intercepted it like that try {
await init();
}
catch (e){} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to remove/resolve the error that winint gives
Beta Was this translation helpful? Give feedback.
All reactions