pub(crate) async fn hsr_freeze(frozen_state: String) {
        // We use a custom name so we don't interfere with any state freezing the user's
        // doing independently
        let idb_store = match IdbFrozenStateStore::new_with_name("perseus_hsr").await {
            Ok(idb_store) => idb_store,
            Err(err) => return log(&format!("IndexedDB setup error: {}.", err)),
        };
        match idb_store.set(&frozen_state).await {
            Ok(_) => log("State frozen."),
            Err(err) => log(&format!("State freezing error: {}.", err)),
        };
    }
Freezes the app's state to IndexedDB to be accessed in future. This
takes a pre-determined frozen state to avoid *really* annoying
lifetime errors.
packages/perseus/src/reactor/hsr.rs