Skip to content

Commit ffedb82

Browse files
committed
fix: add config param to wasm init function
1 parent 70cab45 commit ffedb82

File tree

1 file changed

+2
-2
lines changed
  • crates/processing_render/src

1 file changed

+2
-2
lines changed

crates/processing_render/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,15 @@ pub fn init(config: Config) -> error::Result<()> {
293293

294294
/// Initialize the app asynchronously
295295
#[cfg(target_arch = "wasm32")]
296-
pub async fn init() -> error::Result<()> {
296+
pub async fn init(config: Config) -> error::Result<()> {
297297
use bevy::app::PluginsState;
298298

299299
setup_tracing()?;
300300
if is_already_init()? {
301301
return Ok(());
302302
}
303303

304-
let mut app = create_app();
304+
let mut app = create_app(config);
305305

306306
// we need to avoid blocking the main thread while waiting for plugins to initialize
307307
while app.plugins_state() == PluginsState::Adding {

0 commit comments

Comments
 (0)