fix(frontend): remove loading spinner on app mount
This commit is contained in:
@@ -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/> })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user