Skip to content

Commit

Permalink
append env builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard authored and Richard committed Nov 8, 2020
1 parent 2e15c35 commit 6bb5ba0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion js-wasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,13 @@ document.addEventListener("DOMContentLoaded", function () {
console.error("Script tag must have 'src' property.");
}
}
});
});

if (window.WasmScript) {
window.WasmScript["js-wasm"] = function (e) {
return {
...e,
...JsWasm.createEnvironment()
}
}
}

0 comments on commit 6bb5ba0

Please sign in to comment.