fix: add error handling on the wasm loading

This commit is contained in:
Jet Pham 2026-03-09 22:51:35 -07:00
parent 44da77246d
commit 2bc98414b1
No known key found for this signature in database

View file

@ -4,5 +4,9 @@ import init, { start } from "cgol";
document.getElementById("ansi-art")!.innerHTML = Jet; document.getElementById("ansi-art")!.innerHTML = Jet;
try {
await init(); await init();
start(); start();
} catch (e) {
console.error("WASM init failed:", e);
}