fix(frontend): remove loading spinner on app mount

This commit is contained in:
spinline
2026-01-31 14:44:51 +03:00
parent 202ee1340b
commit 0cf5841023
2 changed files with 7 additions and 1 deletions

View File

@@ -18,6 +18,6 @@ wasm-bindgen = "0.2"
uuid = { version = "1", features = ["v4", "js"] }
futures = "0.3"
chrono = { version = "0.4", features = ["serde"] }
web-sys = { version = "0.3", features = ["Window", "Storage"] }
web-sys = { version = "0.3", features = ["Window", "Storage", "Document", "Element"] }
shared = { path = "../shared" }
tailwind_fuse = "0.3.2"

View File

@@ -12,5 +12,11 @@ pub fn main() {
console_error_panic_hook::set_once();
console_log::init_with_level(log::Level::Debug).unwrap();
let window = web_sys::window().unwrap();
let document = window.document().unwrap();
if let Some(loader) = document.get_element_by_id("app-loading") {
loader.remove();
}
mount_to_body(|| view! { <App/> })
}