Merge branch 'master' into master

This commit is contained in:
YuKun Liu authored and GitHub committed 2022-04-01 16:04:45 +08:00
commit 1017c87e9b
2 files changed
+16 -5

No files matched your search

+5 -1
View File
@@ -10,7 +10,11 @@
<div id="main"></div>
<script type="module">
import init from "./assets/dioxus/{app_name}.js";
init("./assets/dioxus/{app_name}_bg.wasm");
init("./assets/dioxus/{app_name}_bg.wasm").then(wasm => {
if (wasm.__wbindgen_start == undefined) {
wasm.main();
}
});
</script>
{script_include}
</body>