web: Don't append and subsequently remove link just to download files
This commit is contained in:
parent
0551d8bf1f
commit
181ddd7429
|
@ -1152,11 +1152,8 @@ export class RufflePlayer extends HTMLElement {
|
|||
const blobURL = URL.createObjectURL(blob);
|
||||
const link = document.createElement("a");
|
||||
link.href = blobURL;
|
||||
link.style.display = "none";
|
||||
link.download = name;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
URL.revokeObjectURL(blobURL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue