web: more scroll to top improvements by reworking URL changes

This commit is contained in:
2025-02-25 15:58:24 -08:00
parent 8977f8bab5
commit 4982057500
4 changed files with 25 additions and 16 deletions

View File

@@ -18,6 +18,9 @@ fn main() {
#[cfg(debug_assertions)]
console_error_panic_hook::set_once();
#[cfg(debug_assertions)]
let lvl = Level::Debug;
#[cfg(not(debug_assertions))]
let lvl = Level::Info;
console_log::init_with_level(lvl).expect("failed to initialize console logging");
// Mount the `app` to the element with the `id` "app".