fix truly heinous memory bug
This commit is contained in:
parent
2f3f362f49
commit
4e7557cbcc
2
justfile
2
justfile
|
@ -17,7 +17,7 @@ clean-wasm-pack:
|
||||||
|
|
||||||
|
|
||||||
serve:
|
serve:
|
||||||
miniserve pkg && open http://localhost:8080/index.html
|
open http://localhost:8080/index.html && miniserve pkg
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@just --list
|
@just --list
|
||||||
|
|
|
@ -15,9 +15,9 @@ let loaded_wasm = false
|
||||||
|
|
||||||
async function run(e) {
|
async function run(e) {
|
||||||
if (!loaded_wasm) {
|
if (!loaded_wasm) {
|
||||||
|
loaded_wasm = true
|
||||||
await init()
|
await init()
|
||||||
console.log("Worker: Ludus has been initialized.")
|
console.log("Worker: Ludus has been initialized.")
|
||||||
loaded_wasm = true
|
|
||||||
}
|
}
|
||||||
let msgs = e.data
|
let msgs = e.data
|
||||||
for (const msg of msgs) {
|
for (const msg of msgs) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user