Skip to content

Commit

Permalink
Correct variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaobrien committed Jan 10, 2025
1 parent 45453e8 commit d9c0bec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions emscripten/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit d9c0bec

Please sign in to comment.