diff --git a/src/lib.rs b/src/lib.rs index 2ec9039..5734426 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,10 +47,11 @@ cfg_if::cfg_if! { #[wasm_bindgen(start)] pub fn start() -> Result<(), wasm_bindgen::JsValue> { - tracing::info!("Initializing..."); + tracing::info!("Starting..."); + // Used in order to hook into `panic!()` to log in the browser's console tracing_wasm::set_as_global_default(); - tracing::info!("Starting App..."); + eframe::start_web("canvas", Box::new(|cc| Box::new(math_app::MathApp::new(cc)))) } }