You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Service workers no longer allow XHR-based requests (not sure if they ever did) so we can't load file packages or shared libraries without using fetch(). The following PR allows the user to compile with -sUSE_FETCH to correct this:
The text was updated successfully, but these errors were encountered:
seanmorris
changed the title
Can't preload files/shared libs in service worker due to lack of XHR
Can't preload files/shared libs in service worker due to lack of XHR [PR OPEN!]
May 26, 2024
seanmorris
changed the title
Can't preload files/shared libs in service worker due to lack of XHR [PR OPEN!]
Can't preload files/shared libs in service worker due to lack of XHR
May 26, 2024
seanmorris
changed the title
Can't preload files/shared libs in service worker due to lack of XHR
Can't preload files/shared libs in service worker due to lack of XHR [PR OPEN]
May 26, 2024
…22015)
This PR switches requests for Wasm files to be loaded with `fetch()` rather than `XMLHttpRequest()`.
This fixes running in service workers where `XMLHttpRequest` is not available.
Partially fixes#22003, only applies to Wasm files.
msorvig
pushed a commit
to msorvig/emscripten
that referenced
this issue
Jun 4, 2024
…mscripten-core#22015)
This PR switches requests for Wasm files to be loaded with `fetch()` rather than `XMLHttpRequest()`.
This fixes running in service workers where `XMLHttpRequest` is not available.
Partially fixesemscripten-core#22003, only applies to Wasm files.
Service workers no longer allow XHR-based requests (not sure if they ever did) so we can't load file packages or shared libraries without using
fetch()
. The following PR allows the user to compile with-sUSE_FETCH
to correct this:#22002
The text was updated successfully, but these errors were encountered: