Added details to response to fix error #4

Merged
CEbbinghaus merged 1 commit from patch-1 into main 2023-04-02 01:57:41 +01:00
Showing only changes of commit 1c6ade62ca - Show all commits

View file

@ -25,7 +25,15 @@ function decode() {
for (var i = 0; i < binaryString.length; 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() {