Skip to content

Commit eaabcf4

Browse files
committed
chore: update examples to newer wasm_bindgen version
1 parent de09225 commit eaabcf4

File tree

3 files changed

+66
-62
lines changed

3 files changed

+66
-62
lines changed

examples/initializer/Cargo.lock

+29-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/initializer/index.html

+8-6
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
</head>
1111
<body>
1212
<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="z" data-bin="initializer-example" data-initializer="src/initializer.mjs"/>
13+
14+
<script type="module">
15+
// you will still get the TrunkApplicationStarted event
16+
addEventListener("TrunkApplicationStarted", (event) => {
17+
console.log("application started - bindings:", window.wasmBindings, "event:", event);
18+
});
19+
</script>
20+
1321
</body>
14-
<script type="module">
15-
// you will still get the TrunkApplicationStarted event
16-
addEventListener("TrunkApplicationStarted", (event) => {
17-
console.log("application started - bindings:", window.wasmBindings, "event:", event);
18-
});
19-
</script>
2022
</html>

examples/vanilla/Cargo.lock

+29-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)