Fix SVG export
This commit is contained in:
parent
a2bb19e808
commit
f838bbf233
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ $compile(
|
|||
["h2", {}, "Export"],
|
||||
["div", {}, ["a", {
|
||||
class: "button",
|
||||
href: svg.map(svg => `data:text/svg,${encodeURI(svg)}`),
|
||||
href: svg.map(svg => `data:text/svg,${encodeURIComponent(svg)}`),
|
||||
download: sync({ src: { xSeeds, ySeeds } }).map(({ xSeeds, ySeeds }) => `hitomezashi-pattern-${Date.now()}-${xSeeds.join('')}-${ySeeds.join('')}.svg`)
|
||||
}, "Download SVG"]]]]
|
||||
).mount(document.body)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue