From b7121be0caa7d6360a3661221363726b20008211 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 9 Mar 2022 08:41:12 -0500 Subject: [PATCH] add comment --- src/egui_app.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/egui_app.rs b/src/egui_app.rs index d63154f..e0a4f48 100644 --- a/src/egui_app.rs +++ b/src/egui_app.rs @@ -149,6 +149,8 @@ lazy_static::lazy_static! { cfg_if::cfg_if! { if #[cfg(target_arch = "wasm32")] { use wasm_bindgen::JsCast; + + // removes the "loading" element on the web page that displays a loading indicator fn stop_loading() { let document = web_sys::window().unwrap().document().unwrap(); let loading_element = document.get_element_by_id("loading").unwrap().dyn_into::().unwrap();