|
@@ -6,9 +6,9 @@ The `js_wasm32` target assumes that the WASM output will be ran within a web bro
|
|
|
|
|
|
## Example for `js_wasm32`
|
|
## Example for `js_wasm32`
|
|
|
|
|
|
-```js
|
|
|
|
-<!-- Copy `vendor:wasm/js/runtime.js` into your web server -->
|
|
|
|
-<script type="text/javascript" src="runtime.js"></script>
|
|
|
|
|
|
+```html
|
|
|
|
+<!-- Copy `vendor:wasm/js/odin.js` into your web server -->
|
|
|
|
+<script type="text/javascript" src="odin.js"></script>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
odin.runWasm(pathToWasm, consolePreElement);
|
|
odin.runWasm(pathToWasm, consolePreElement);
|
|
</script>
|
|
</script>
|