From d9c0bec364fcad7f541727b7f13e1068c3c6dd23 Mon Sep 17 00:00:00 2001 From: Ethan O'Brien Date: Fri, 10 Jan 2025 12:24:48 -0600 Subject: [PATCH] Correct variable name --- emscripten/static/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emscripten/static/index.js b/emscripten/static/index.js index e69595541e7a..44823e8c170b 100644 --- a/emscripten/static/index.js +++ b/emscripten/static/index.js @@ -172,16 +172,16 @@ async function updateAssets() { }; //Always pull assets on a debug build - if (currentVersion !== assets_version || assets_version.includes("DEBUG")) + if (currentVersion !== assetsVersion || assetsVersion.includes("DEBUG")) { - console.log("Updating assets to", assets_version); + console.log("Updating assets to", assetsVersion); document.getElementById("loadingWebassembly").innerText = "Asset update found. Downloading..."; await clearDatabase("/OpenRCT2/"); await extractZip(await (await fetch("assets.zip")).blob(), () => { return "/OpenRCT2/"; }); - Module.FS.writeFile("/OpenRCT2/version", assets_version.toString()); + Module.FS.writeFile("/OpenRCT2/version", assetsVersion.toString()); } }