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:
parent
c74117b152
commit
715044e381
1 changed files with 2 additions and 1 deletions
|
@ -57,10 +57,11 @@ function getOrientation(file, callback) {
|
||||||
function trigger_download(name, data){
|
function trigger_download(name, data){
|
||||||
const a = document.createElement('a')
|
const a = document.createElement('a')
|
||||||
document.body.appendChild(a)
|
document.body.appendChild(a)
|
||||||
a.target = '_blank'
|
// a.target = '_blank'
|
||||||
a.download = name
|
a.download = name
|
||||||
a.href = data
|
a.href = data
|
||||||
a.click()
|
a.click()
|
||||||
|
a.remove()
|
||||||
}
|
}
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
|
|
Loading…
Reference in a new issue