mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 05:14:48 +00:00
Fix build
This commit is contained in:
parent
2ef7cd6d96
commit
21c472e739
1 changed files with 6 additions and 2 deletions
|
@ -27,8 +27,12 @@ pub fn instantiate_from_string(
|
|||
#[cfg(feature = "console_error_panic_hook")]
|
||||
console_error_panic_hook::set_once();
|
||||
|
||||
let c = sixtyfps_interpreter::load(source.to_owned(), &std::path::Path::new(""), &[])
|
||||
.map_err(|diag| js_sys::Error::new(&diag.to_string_vec().join("\n")))?;
|
||||
let c = sixtyfps_interpreter::load(
|
||||
source.to_owned(),
|
||||
&std::path::Path::new(""),
|
||||
&Default::default(),
|
||||
)
|
||||
.map_err(|diag| js_sys::Error::new(&diag.to_string_vec().join("\n")))?;
|
||||
|
||||
let component = c.clone().create(canvas_id);
|
||||
component.window().run(component.borrow(), component.root_item());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue