From 7adb50753e090d3873049c261f95191c6fb979f2 Mon Sep 17 00:00:00 2001 From: Michael Fix Date: Tue, 7 Jul 2020 18:54:53 -0700 Subject: [PATCH] use snippet name as filename (#1051) --- components/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Editor.js b/components/Editor.js index 0afc312..f457539 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -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') {