diff --git a/pages/editor.js b/pages/editor.js index 0bf555a..9afa9dd 100644 --- a/pages/editor.js +++ b/pages/editor.js @@ -83,7 +83,9 @@ class Editor extends React.Component { const link = document.createElement('a') link.download = 'carbon.png' link.href = dataUrl + document.body.appendChild(link) link.click() + link.remove() }) }