mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.5.20 - don't store default style
This commit is contained in:
parent
fbdaf3089b
commit
4fffb33e19
3 changed files with 29 additions and 38 deletions
|
|
@ -1007,13 +1007,6 @@ function parseLoadedData(data) {
|
|||
}
|
||||
|
||||
if (version < 1.22) {
|
||||
// v 1.21 had incorrect style formatting
|
||||
localStorage.removeItem("styleClean");
|
||||
localStorage.removeItem("styleGloom");
|
||||
localStorage.removeItem("styleAncient");
|
||||
localStorage.removeItem("styleMonochrome");
|
||||
addDefaulsStyles();
|
||||
|
||||
// v 1.22 changed state neighbors from Set object to array
|
||||
BurgsAndStates.collectStatistics();
|
||||
}
|
||||
|
|
@ -1078,6 +1071,12 @@ function parseLoadedData(data) {
|
|||
emblems.append("g").attr("id", "stateEmblems");
|
||||
regenerateEmblems();
|
||||
toggleEmblems();
|
||||
|
||||
// not need to store default styles from v 1.5
|
||||
localStorage.removeItem("styleClean");
|
||||
localStorage.removeItem("styleGloom");
|
||||
localStorage.removeItem("styleAncient");
|
||||
localStorage.removeItem("styleMonochrome");
|
||||
}
|
||||
|
||||
}()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue