fix(frontend): remove loading spinner on app mount
This commit is contained in:
@@ -18,6 +18,6 @@ wasm-bindgen = "0.2"
|
|||||||
uuid = { version = "1", features = ["v4", "js"] }
|
uuid = { version = "1", features = ["v4", "js"] }
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
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" }
|
shared = { path = "../shared" }
|
||||||
tailwind_fuse = "0.3.2"
|
tailwind_fuse = "0.3.2"
|
||||||
|
|||||||
@@ -12,5 +12,11 @@ pub fn main() {
|
|||||||
console_error_panic_hook::set_once();
|
console_error_panic_hook::set_once();
|
||||||
console_log::init_with_level(log::Level::Debug).unwrap();
|
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/> })
|
mount_to_body(|| view! { <App/> })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user