diff --git a/src/App.js b/src/App.js index ba9e978..6b6bc8e 100644 --- a/src/App.js +++ b/src/App.js @@ -57,10 +57,11 @@ function getOrientation(file, callback) { function trigger_download(name, data){ const a = document.createElement('a') document.body.appendChild(a) - a.target = '_blank' + // a.target = '_blank' a.download = name a.href = data a.click() + a.remove() } function App() {