use snippet name as filename (#1051)

main
Michael Fix 4 years ago committed by GitHub
parent c55dae6ffe
commit 7adb50753e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -222,7 +222,7 @@ class Editor extends React.Component {
exportImage = (format = 'png', options = {}) => {
const link = document.createElement('a')
const prefix = options.filename || 'carbon'
const prefix = options.filename || this.state.name || 'carbon'
return this.getCarbonImage({ format, type: 'objectURL' }).then(url => {
if (format !== 'open') {

Loading…
Cancel
Save