1
0
Fork 0

bug: Fixed import of draft CSS when sampling

This commit is contained in:
Joost De Cock 2018-12-18 11:53:24 +01:00
parent ea29e23387
commit 35f77f12c1

View file

@ -12,10 +12,10 @@ export default {
hooks: {
preRender: function(svg) {
if (svg.attributes.get("freesewing:plugin-theme") === false) {
console.log("theme prerender hook", svg);
svg.defs += notch;
svg.pattern.is === "sample"
? (svg.style += sampleCss)
: (svg.style += draftCss);
svg.style += draftCss;
if (svg.pattern.is === "sample") svg.style += sampleCss;
if (svg.pattern.settings.paperless) {
svg.style += paperlessCss;
svg.pattern.settings.units === "imperial"