]> git.seodisparate.com - RockPaperScissorsDuel/commitdiff
Attempt to fix undefined wasmExports
authorStephen Seo <seo.disparate@gmail.com>
Sun, 17 Sep 2023 11:03:02 +0000 (20:03 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sun, 17 Sep 2023 11:03:02 +0000 (20:03 +0900)
wasm_build/client.js

index 0eaf148f111907ad64fdcc3581af9aa8ac6f7fe7..3b9308c4c1a754bbbb8ddb6746b00ceec8795d83 100644 (file)
@@ -85,7 +85,8 @@ Rune.initClient({
 let em_checking_interval_id = setInterval(
     () => {
         if (typeof Module !== "undefined"
-                && typeof Module.ccall !== "undefined") {
+                && typeof Module.ccall !== "undefined"
+                && typeof wasmExports !== "undefined") {
             do_rune_init();
             clearInterval(em_checking_interval_id);
             console.log("Rune initialized!");