Skip to content

Commit 25f3938

Browse files
committed
no ammo
1 parent 97e5111 commit 25f3938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

md/5_writing_ops/dev_attachments/dev_attachments.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ AGFzbQEAAAABCAJgAX8AYAAAAh4BDG15X25hbWVzcGFjZQ1pbXBvcnRlZF9mdW5jAAADAgEBBxEBDWV4
8282
Now, in the Op code, add this:
8383
```javascript
8484
// create data url from base64 wasm code
85-
const ammoWasm = "data:application/wasm;base64," + attachments.wasm;
85+
const simpleWasm = "data:application/wasm;base64," + attachments.wasm;
8686

8787
// define callable functions
8888
const importObject = {
8989
"my_namespace": { "imported_func": (arg) => { return console.log(arg); } },
9090
};
9191

9292
// fetch code from dataurl and instantiate wasm
93-
fetch(ammoWasm).then((g) =>
93+
fetch(simpleWasm).then((g) =>
9494
{
9595
WebAssembly.instantiateStreaming(g, importObject).then(
9696
(obj) =>

0 commit comments

Comments
 (0)