mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
force cache update
This commit is contained in:
parent
242cf32202
commit
6f12f26eb9
1 changed files with 2 additions and 2 deletions
|
|
@ -8,10 +8,10 @@ const version = "1.811"; // generator version, update each time
|
|||
const loadingScreenVersion = document.getElementById("version");
|
||||
if (loadingScreenVersion) loadingScreenVersion.innerHTML = version;
|
||||
|
||||
const majorVersion = Math.round(version * 10) / 10;
|
||||
const majorChangesVersion = 1.811;
|
||||
const storedVersion = +localStorage.getItem("version") || 0;
|
||||
|
||||
const showUpdate = storedVersion < majorVersion;
|
||||
const showUpdate = storedVersion < majorChangesVersion;
|
||||
if (showUpdate) setTimeout(showUpdateWindow, 5000);
|
||||
|
||||
function showUpdateWindow() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue