Skip to content

Commit

Permalink
Merge pull request #5 from dragly/MISC-2024-08-24-enable-multiple-can…
Browse files Browse the repository at this point in the history
…vases

Enable rendering to multiple canvases
  • Loading branch information
dragly authored Aug 25, 2024
2 parents 88ce388 + f948fc2 commit 3bb99dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neuronify-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@ pub async fn load(wrapper: &mut WasmWrapper, canvas: &str, url: &str) -> Result<

#[wasm_bindgen]
pub async fn start(mut wrapper: WasmWrapper) -> Result<(), JsValue> {
let event_handler = move |event, target: &EventLoopWindowTarget<CustomEvent>| {
let _event_handler = move |event, target: &EventLoopWindowTarget<CustomEvent>| {
for bundle in wrapper.bundles.iter_mut() {
let application = &mut bundle.application;
let simulation = &mut bundle.simulation;
Expand All @@ -1731,7 +1731,7 @@ pub async fn start(mut wrapper: WasmWrapper) -> Result<(), JsValue> {
}
};
#[cfg(target_arch = "wasm32")]
wrapper.event_loop.spawn(event_handler);
wrapper.event_loop.spawn(_event_handler);
Ok(())
}

Expand Down

0 comments on commit 3bb99dd

Please sign in to comment.