update file name on save

main
briandennis 7 years ago
parent 457cffd289
commit 3df297f037

@ -81,7 +81,7 @@ class Editor extends React.Component {
this.getCarbonImage() this.getCarbonImage()
.then((dataUrl) => { .then((dataUrl) => {
const link = document.createElement('a') const link = document.createElement('a')
link.download = 'snippet.png' link.download = 'carbon.png'
link.href = dataUrl link.href = dataUrl
link.click() link.click()
}) })

Loading…
Cancel
Save