mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Fix wasm build
This commit is contained in:
parent
edfa6319b2
commit
8b16509422
1 changed files with 1 additions and 0 deletions
|
@ -563,6 +563,7 @@ impl ComponentDefinition {
|
|||
/// Instantiate the component for wasm using the given canvas id
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
pub fn create_with_canvas_id(&self, canvas_id: &str) -> ComponentInstance {
|
||||
generativity::make_guard!(guard);
|
||||
ComponentInstance { inner: self.inner.unerase(guard).clone().create(canvas_id.into()) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue