sparkles: Switched to attribute.set() for version info
This commit is contained in:
parent
dc91275c9a
commit
faedf4869e
1 changed files with 4 additions and 2 deletions
|
@ -6,8 +6,10 @@ export default {
|
|||
version: version,
|
||||
hooks: {
|
||||
preRender: function(svg) {
|
||||
svg.attributes.add("freesewing:plugin-title", version);
|
||||
svg.style += style;
|
||||
if (svg.attributes.get("freesewing:plugin-title") === false) {
|
||||
svg.attributes.set("freesewing:plugin-title", version);
|
||||
svg.style += style;
|
||||
}
|
||||
}
|
||||
},
|
||||
macros: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue