This commit is contained in:
Azgaar 2019-10-17 22:41:57 +03:00
parent 905573dde7
commit efd9159737
4 changed files with 12 additions and 11 deletions

View file

@ -7,11 +7,11 @@
// See also https://github.com/Azgaar/Fantasy-Map-Generator/issues/153
"use strict";
const version = "1.1"; // generator version
const version = "1.11"; // generator version
document.title += " v" + version;
// if map version is not stored, clear localStorage and show a message
if (localStorage.getItem("version") != version) {
if (rn(localStorage.getItem("version"),1) !== rn(version,1)) {
localStorage.clear();
setTimeout(showWelcomeMessage, 8000);
}