1
0
Fork 0

sparkles: Switched to attribute.set() for version info

This commit is contained in:
Joost De Cock 2018-12-08 17:44:30 +01:00
parent dc91275c9a
commit faedf4869e

View file

@ -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: {