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:
aca authored and Admin committed 2018-11-12 19:04:08 +01:00
1 parent 9b40a5122c
commit 4450cb4fdc
1 file changed
+3
+3
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;
},