Fix replace  

main
Mike Fix 7 years ago
parent ded4b04349
commit 7b9c31101e

@ -119,7 +119,7 @@ class Editor extends React.Component {
if (format === 'svg') {
return domtoimage
.toSvg(node, config)
.then(dataUrl => dataUrl.split(' ').join(' '))
.then(dataUrl => dataUrl.replace(/ /g, ' '))
.then(uri => uri.slice(uri.indexOf(',') + 1))
.then(data => new Blob([data], { type: 'image/svg+xml' }))
.then(data => window.URL.createObjectURL(data))

Loading…
Cancel
Save