web: Don't append and subsequently remove link just to download files

This commit is contained in:
Daniel Jacobs 2024-05-01 09:52:08 -04:00
parent 0551d8bf1f
commit 181ddd7429
1 changed files with 0 additions and 3 deletions

View File

@ -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);
}