Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fetching assets in Web Workers #12134

Merged
merged 4 commits into from
Mar 25, 2024
Merged

Fix fetching assets in Web Workers #12134

merged 4 commits into from
Mar 25, 2024

Commits on Feb 26, 2024

  1. Support fetching assets in Web Workers

    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`.
    allsey87 committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    b7358cf View commit details
    Browse the repository at this point in the history
  2. Fix formatting

    allsey87 committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    c8cb805 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. Determine whether the global context is a web_sys::Window or a `web…

    …_sys::WorkerGlobalScope` using bindings instead of `js_sys::Reflect`.
    allsey87 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    1ed55de View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. Add comments and link back to MDN documentation

    Co-authored-by: Zachary Harrold <[email protected]>
    allsey87 and bushrat011899 authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    11b6268 View commit details
    Browse the repository at this point in the history