obsidian-typst icon indicating copy to clipboard operation
obsidian-typst copied to clipboard

Fix compiler worker not fetching wasm binary correctly

Open OverHash opened this issue 6 months ago • 4 comments

See issue #59 for why this patch is needed.

Essentially, inside the web worker environment, the global 'Response' does not exist. As a result, wasm-bindgen's attempt to fetch the binary and parse the Response object does not work.

This patch sends the entire wasm binary through to WebAssembly.instantiate.

OverHash avatar Jul 30 '24 23:07 OverHash