fix: move initial wasm into app

This commit is contained in:
Steven
2024-02-01 19:06:44 +08:00
parent 79227021f5
commit 554f93eccc
3 changed files with 17 additions and 8 deletions

View File

@@ -18,12 +18,6 @@
}
</script>
<script src="wasm_exec.js"></script>
<script>
const go = new Go();
WebAssembly.instantiateStreaming(fetch("gomark.wasm"), go.importObject).then((result) => {
go.run(result.instance);
});
</script>
</head>
<body>
<div id="root"></div>