mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Load worker as module
This commit is contained in:
parent
1e6eb6b5a7
commit
896dc437ff
2 changed files with 1 additions and 1 deletions
|
@ -45,6 +45,7 @@ export function spawnWorker(): Worker {
|
|||
console.log(url);
|
||||
const worker = new Worker(
|
||||
url,
|
||||
{ type: "module" }
|
||||
);
|
||||
|
||||
//const msg = [wasmModule, wasmImport, ptr];
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import wasm_bindgen from '../../wasm/pkg/graphite_wasm.js'
|
||||
|
||||
const { child_entry_point } = wasm_bindgen;
|
||||
console.log("initing worker");
|
||||
|
||||
self.onmessage = async event => {
|
||||
// We expect a message with three elements [module, memory, ptr], where:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue