Fixed IE11 download page link not working
'click()' function call doesn't open the link because the element is not added to the DOM
This commit is contained in:
@@ -120,7 +120,10 @@
|
|||||||
const aEl = document.createElement('a');
|
const aEl = document.createElement('a');
|
||||||
aEl.setAttribute('href', file.url);
|
aEl.setAttribute('href', file.url);
|
||||||
aEl.setAttribute('download', file.metadata.name);
|
aEl.setAttribute('download', file.metadata.name);
|
||||||
|
aEl.style.display = 'none';
|
||||||
|
document.body.appendChild(aEl);
|
||||||
aEl.click();
|
aEl.click();
|
||||||
|
aEl.remove();
|
||||||
file.downloaded = true;
|
file.downloaded = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user