From a382cae9141a9fd147e1ad1e502f0c75580e2bbd Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 17 May 2022 18:02:03 -0400 Subject: [PATCH] edit message --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)))) } }