forked from mystiq/hydrogen-web
no need for a dedicated class just to hide it
This commit is contained in:
parent
9bb521986b
commit
14b3c4b701
2 changed files with 1 additions and 5 deletions
|
@ -20,7 +20,7 @@ export async function downloadInIframe(container, iframeSrc, blob, filename) {
|
||||||
iframe = document.createElement("iframe");
|
iframe = document.createElement("iframe");
|
||||||
iframe.setAttribute("sandbox", "allow-scripts allow-downloads allow-downloads-without-user-activation");
|
iframe.setAttribute("sandbox", "allow-scripts allow-downloads allow-downloads-without-user-activation");
|
||||||
iframe.setAttribute("src", iframeSrc);
|
iframe.setAttribute("src", iframeSrc);
|
||||||
iframe.className = "downloadSandbox";
|
iframe.className = "hidden";
|
||||||
container.appendChild(iframe);
|
container.appendChild(iframe);
|
||||||
let detach;
|
let detach;
|
||||||
await new Promise((resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
|
|
|
@ -49,7 +49,3 @@ body.hydrogen {
|
||||||
input::-ms-clear {
|
input::-ms-clear {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hydrogen > iframe.downloadSandbox {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue