Merge pull request #59 from alaincao/master

Fixed IE11 download page link not working
This commit is contained in:
Christoph Wiechert
2018-11-13 16:24:06 +01:00
committed by GitHub

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;
},