upd
This commit is contained in:
parent
6e0140104d
commit
5c48c87285
1 changed files with 2 additions and 8 deletions
|
@ -51,9 +51,6 @@ impl WebHandle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
pub fn init_wasm_hooks() {
|
pub fn init_wasm_hooks() {
|
||||||
|
@ -64,7 +61,6 @@ pub fn init_wasm_hooks(){
|
||||||
tracing_wasm::set_as_global_default();
|
tracing_wasm::set_as_global_default();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
pub fn start_separate(canvas_id: &str) -> Result<WebHandle, wasm_bindgen::JsValue> {
|
pub fn start_separate(canvas_id: &str) -> Result<WebHandle, wasm_bindgen::JsValue> {
|
||||||
|
@ -79,7 +75,6 @@ pub fn start_separate(canvas_id: &str) -> Result<WebHandle, wasm_bindgen::JsValu
|
||||||
handle
|
handle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// This is the entry-point for all the web-assembly.
|
/// This is the entry-point for all the web-assembly.
|
||||||
/// This is called once from the HTML.
|
/// This is called once from the HTML.
|
||||||
/// It loads the app, installs some callbacks, then returns.
|
/// It loads the app, installs some callbacks, then returns.
|
||||||
|
@ -87,7 +82,6 @@ pub fn start_separate(canvas_id: &str) -> Result<WebHandle, wasm_bindgen::JsValu
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
pub fn start(canvas_id: &str) -> Result<WebHandle, wasm_bindgen::JsValue> {
|
pub fn start(canvas_id: &str) -> Result<WebHandle, wasm_bindgen::JsValue> {
|
||||||
|
|
||||||
init_wasm_hooks();
|
init_wasm_hooks();
|
||||||
start_separate(canvas_id)
|
start_separate(canvas_id)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue