virtualx-engine/platform/javascript/js/engine
Fabio Alessandrelli 6181452a54
[HTML5] Fix loading when mime-type is missing.
`WebAssembly.instantiateStreaming` requires the mime-type to be
`application/wasm`, but some servers (including most debug servers) do
not provide the content-type header.

This commit forces it via JavaScript, by creating a `Response` object
with the `wasm` content, and explicitly defined `content-type` header.

(cherry picked from commit 778ef4e217)
2021-03-20 23:10:00 +01:00
..
config.js [HTML5] Drag and drop zip in project manager. 2021-03-12 10:43:52 +01:00
engine.externs.js [HTML5] Preloader fetch, streaming instantiation. 2021-03-05 17:32:17 +01:00
engine.js [HTML5] Fix loading when mime-type is missing. 2021-03-20 23:10:00 +01:00
preloader.js [HTML5] Export process writes sizes in template. 2021-03-05 17:32:17 +01:00