1
0
Fork 0
mirror of https://github.com/voltbonn/profile-picture-generator.git synced 2024-12-22 15:55:08 +00:00

BUGFIX download wasn't triggered on iOS

This commit is contained in:
thomasrosen 2021-01-23 13:47:32 +01:00
parent c74117b152
commit 715044e381

View file

@ -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() {