Added details to response to fix error #4
1 changed files with 9 additions and 1 deletions
|
@ -25,7 +25,15 @@ function decode() {
|
||||||
for (var i = 0; i < binaryString.length; i++) {
|
for (var i = 0; i < binaryString.length; i++) {
|
||||||
bytes[i] = binaryString.charCodeAt(i);
|
bytes[i] = binaryString.charCodeAt(i);
|
||||||
}
|
}
|
||||||
return (async function() {return new Response(bytes.buffer);})();
|
return (async function() {
|
||||||
|
return new Response(bytes.buffer, {
|
||||||
|
status: 200,
|
||||||
|
statusText: 'OK',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/wasm'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function init_embedded() {
|
export function init_embedded() {
|
||||||
|
|
Loading…
Reference in a new issue