bevy/crates/bevy_asset
Michael Allwright 1d8a7350fb
Fix fetching assets in Web Workers (#12134)
# Objective

This PR fixes #12125

## Solution

The logic in this PR was borrowed from gloo-net and essentially probes
the global Javascript context to see if we are in a window or a worker
before calling `fetch_with_str`.

---------

Co-authored-by: Zachary Harrold <zac@harrold.com.au>
2024-04-01 23:04:37 +02:00
..
macros Release: 0.13.1 2024-03-18 23:06:31 +01:00
src Fix fetching assets in Web Workers (#12134) 2024-04-01 23:04:37 +02:00
Cargo.toml Release: 0.13.1 2024-03-18 23:06:31 +01:00