This commit is contained in:
@@ -448,12 +448,6 @@ pub fn init_logging() {
|
||||
info!("logging initiated");
|
||||
}
|
||||
|
||||
// TODO: once we update to dioxus 0.7, swap this out with the dioxus-asset-resolver crate
|
||||
pub async fn read_asset_bytes(asset: &dioxus::prelude::Asset) -> color_eyre::Result<Vec<u8>> {
|
||||
let url = absolute_url(asset.to_string().trim_matches('/'))?;
|
||||
Ok(reqwest::get(url).await?.bytes().await?.to_vec())
|
||||
}
|
||||
|
||||
pub struct SpawnHandle;
|
||||
|
||||
impl SpawnHandle {
|
||||
|
||||
Reference in New Issue
Block a user