Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223fn main() -> Result<(), burokku::BurokkuError> { let mut script = include_str!("../dist/app.js").to_owned(); if std::env::var_os("BUROKKU_SMOKE").is_some() { script.push_str( "\nsetTimeout(() => {\n\ const window = app.firstChild;\n\ if (window !== null) app.removeChild(window);\n\ }, 1500);", ); }
burokku::Burokku::builder() .script(script) .extension(|registry: &mut burokku::extension::Registry<'_>| { registry.font( include_bytes!("../../../crates/core/testdata/fonts/NotoSans-Regular.ttf") .as_slice(), ); Ok(()) }) .run()}