prevent a new iframe being created for every download
This commit is contained in:
parent
669865f8db
commit
1c4818cf1d
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ export async function downloadInIframe(container, iframeSrc, blob, filename) {
|
|||
iframe = document.createElement("iframe");
|
||||
iframe.setAttribute("sandbox", "allow-scripts allow-downloads allow-downloads-without-user-activation");
|
||||
iframe.setAttribute("src", iframeSrc);
|
||||
iframe.className = "hidden";
|
||||
iframe.className = "hidden downloadSandbox";
|
||||
container.appendChild(iframe);
|
||||
let detach;
|
||||
await new Promise((resolve, reject) => {
|
||||
|
|
Reference in a new issue