v1.5.22 - rendered check and style check

This commit is contained in:
Azgaar 2021-02-12 20:17:58 +03:00
parent 63e66b1678
commit fd8489b39d
3 changed files with 6 additions and 2 deletions

View file

@ -195,6 +195,10 @@
if (parent === "custom") parent = null;
let usedPattern = null, usedTinctures = [];
// TO-DO
// test in FF
// stringify COA on save?
const t1 = P(kinship) ? parent.t1 : getTincture("field");
if (t1.includes("-")) usedPattern = t1;
const coa = {t1};

View file

@ -709,7 +709,7 @@ function applyStyleOnLoad() {
stylePreset.value = preset;
stylePreset.dataset.old = preset;
} else {
preset && ERROR && console.error(`Style preset ${preset} is not available in localStorage, applying default style`);
if (preset !== "styleDefault" && ERROR) console.error(`Style preset ${preset} is not available in localStorage, applying default style`);
stylePreset.value = "styleDefault";
stylePreset.dataset.old = preset;
applyDefaultStyle();