Merge pull request #28 from naturalethic/fix-app-start-in-release
Call wasm main if debug start is missing
This commit is contained in:
1 file changed
+5
-1
@@ -12,7 +12,11 @@
|
||||
<!-- Note the usage of `type=module` here as this is an ES6 module -->
|
||||
<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>
|
||||
|
||||
Reference in new issue
Block a user