mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-03-26 22:41:44 +01:00
Fix chrome security bug breaking legacy downloads
This commit is contained in:
parent
3a9f0c4890
commit
ed2da0f317
@ -79,7 +79,9 @@ const ViewManager = function () {
|
||||
var objurl = file.isLegacy !== undefined ? file.url : URL.createObjectURL(file.blob);
|
||||
var dl_link = document.createElement('a');
|
||||
dl_link.href = objurl;
|
||||
dl_link.download = file.name;
|
||||
if (file.isLegacy === undefined) {
|
||||
dl_link.download = file.name;
|
||||
}
|
||||
dl_link.style.display = "none";
|
||||
let lnk = document.body.appendChild(dl_link);
|
||||
lnk.click();
|
||||
|
Loading…
x
Reference in New Issue
Block a user