Skip to content

Commit 68a4c97

Browse files
committed
fix: missed the bindgen
1 parent ffedb82 commit 68a4c97

File tree

1 file changed

+3
-4
lines changed
  • crates/processing_wasm/src

1 file changed

+3
-4
lines changed

crates/processing_wasm/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
use bevy::prelude::Entity;
44
use processing_render::{
5-
exit, graphics_begin_draw, graphics_end_draw, graphics_flush, graphics_record_command,
6-
image_create, image_destroy, image_load, image_readback, image_resize, init,
7-
render::command::DrawCommand, surface_create_from_canvas, surface_destroy, surface_resize,
5+
config::Config, exit, graphics_begin_draw, graphics_end_draw, graphics_flush, graphics_record_command, image_create, image_destroy, image_load, image_readback, image_resize, init, render::command::DrawCommand, surface_create_from_canvas, surface_destroy, surface_resize
86
};
97
use wasm_bindgen::prelude::*;
108

@@ -19,7 +17,8 @@ fn wasm_start() {
1917

2018
#[wasm_bindgen(js_name = "init")]
2119
pub async fn js_init() -> Result<(), JsValue> {
22-
check(init().await)
20+
let config = Config::new();
21+
check(init(config).await)
2322
}
2423

2524
#[wasm_bindgen(js_name = "createSurface")]

0 commit comments

Comments
 (0)