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:
2018-11-01 19:15:42 +01:00
committed by Admin
parent 9b40a5122c
commit 4450cb4fdc

View File

@@ -120,7 +120,10 @@
const aEl = document.createElement('a');
aEl.setAttribute('href', file.url);
aEl.setAttribute('download', file.metadata.name);
aEl.style.display = 'none';
document.body.appendChild(aEl);
aEl.click();
aEl.remove();
file.downloaded = true;
},