We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5773f3c commit d4e0c2aCopy full SHA for d4e0c2a
src/preamble.js
@@ -2319,7 +2319,10 @@ function integrateWasmJS() {
2319
});
2320
}
2321
// Prefer streaming instantiation if available.
2322
- if (!Module['wasmBinary'] && typeof WebAssembly.instantiateStreaming === 'function' && wasmBinaryFile.indexOf('data:') !== 0) {
+ if (!Module['wasmBinary'] &&
2323
+ typeof WebAssembly.instantiateStreaming === 'function' &&
2324
+ wasmBinaryFile.indexOf('data:') !== 0 &&
2325
+ typeof fetch === 'function') {
2326
WebAssembly.instantiateStreaming(fetch(wasmBinaryFile, { credentials: 'same-origin' }), info)
2327
.then(receiveInstantiatedSource)
2328
.catch(function(reason) {
0 commit comments