From 1c4818cf1df0836352896c59aa976c6b733d3ed2 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 23 Nov 2020 10:28:20 +0100 Subject: [PATCH] prevent a new iframe being created for every download --- src/platform/web/dom/download.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/web/dom/download.js b/src/platform/web/dom/download.js index ec934a65..77a7933b 100644 --- a/src/platform/web/dom/download.js +++ b/src/platform/web/dom/download.js @@ -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) => {