v1.5.20 - don't store default style

This commit is contained in:
Azgaar 2021-02-11 16:17:31 +03:00
parent fbdaf3089b
commit 4fffb33e19
3 changed files with 29 additions and 38 deletions

View file

@ -197,7 +197,6 @@
// TODO
// seafaring etc
// style settings for emblems layer
// define emblems layer style for all styles
// test in FF

View file

@ -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");
}
}()

File diff suppressed because one or more lines are too long