mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Box the app creator (#1373)
This commit is contained in:
@@ -19,5 +19,8 @@ pub fn start(canvas_id: &str) -> Result<(), wasm_bindgen::JsValue> {
|
||||
// Redirect tracing to console.log and friends:
|
||||
tracing_wasm::set_as_global_default();
|
||||
|
||||
eframe::start_web(canvas_id, |cc| Box::new(egui_demo_lib::WrapApp::new(cc)))
|
||||
eframe::start_web(
|
||||
canvas_id,
|
||||
Box::new(|cc| Box::new(egui_demo_lib::WrapApp::new(cc))),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user