Skip to content

Commit

Permalink
fix: web_sys RequestCache
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchantey committed Sep 30, 2024
1 parent d0f261b commit e4ecbdd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ features = [
'Request',
'RequestInit',
'RequestMode',
'RequestCache',
'Response',
# Blob
'Blob',
Expand Down
2 changes: 1 addition & 1 deletion crates/beet_ml/src/wasm/open_or_fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub async fn open_or_fetch_cache(url: &str) -> Result<Uint8Array, JsValue> {
}

let mut opts = RequestInit::new();
opts.cache(web_sys::RequestCache::ForceCache);
opts.set_cache(web_sys::RequestCache::ForceCache);

let res_promise = web_sys::window()
.unwrap()
Expand Down
1 change: 1 addition & 0 deletions crates/beet_spatial/src/steer/steer_actions/seek.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use bevy::prelude::*;
#[category(ActionCategory::Agent)]
#[systems(seek.in_set(TickSet))]
pub struct Seek {
// TODO this should be a seperate component used by other actions as well
pub on_not_found: OnTargetNotFound,
}

Expand Down

0 comments on commit e4ecbdd

Please sign in to comment.