Skip to content

Commit

Permalink
inline the Worker code for dataurl
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Jun 24, 2024
1 parent 8edb195 commit d295452
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/integrity-wallet/inner-app/src/lib/Wallet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
];
// load the import handles into the Wasm component and get the ES module returned
wurbo = new Wurbo({ arrayBuffer: wasmBytes, importables }, async (payload) => {
// We inline the worker code because it's built into a dataurl in this app
let inline = true;
wurbo = new Wurbo({ arrayBuffer: wasmBytes, importables, inline }, async (payload) => {
// Relay emitted commands from the Wasm component to PiperNet
console.log('Command emitted: ', { payload });
dispatch('command', payload);
Expand Down

0 comments on commit d295452

Please sign in to comment.