From 715044e3812d78e9ead56b99eff3acc092109625 Mon Sep 17 00:00:00 2001 From: thomasrosen Date: Sat, 23 Jan 2021 13:47:32 +0100 Subject: [PATCH] BUGFIX download wasn't triggered on iOS --- src/App.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {