mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.4.44
This commit is contained in:
parent
6ea4203acc
commit
05f54ab9e1
1 changed files with 9 additions and 0 deletions
|
|
@ -154,6 +154,15 @@ function inlineStyle(clone) {
|
||||||
style += key + ':' + value + ';';
|
style += key + ':' + value + ';';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (const key in compStyle) {
|
||||||
|
const value = compStyle.getPropertyValue(key);
|
||||||
|
|
||||||
|
if (key === "cursor") continue; // cursor should be default
|
||||||
|
if (this.hasAttribute(key)) continue; // don't add style if there is the same attribute
|
||||||
|
if (value === defaultStyles.getPropertyValue(key)) continue;
|
||||||
|
style += key + ':' + value + ';';
|
||||||
|
}
|
||||||
|
|
||||||
if (style != "") this.setAttribute('style', style);
|
if (style != "") this.setAttribute('style', style);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue