mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 10:31:24 +01:00
fix: showUploadMessage function not called correctly for isUpdated case
This commit is contained in:
parent
6000f82ac9
commit
85e868a351
2 changed files with 7 additions and 7 deletions
|
|
@ -9,10 +9,10 @@ const version = "1.100.00"; // generator version, update each time
|
|||
if (loadingScreenVersion) loadingScreenVersion.innerText = `v${version}`;
|
||||
|
||||
const storedVersion = localStorage.getItem("version");
|
||||
if (isOutdated(storedVersion)) await clearCache();
|
||||
|
||||
const showUpdate = storedVersion < versionNumber;
|
||||
if (showUpdate) setTimeout(showUpdateWindow, 6000);
|
||||
if (isOutdated(storedVersion)) {
|
||||
await clearCache();
|
||||
setTimeout(showUpdateWindow, 6000);
|
||||
}
|
||||
|
||||
function showUpdateWindow() {
|
||||
const changelog = "https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Changelog";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue