Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Properly set style attribute on shared usercontent iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Aug 5, 2021
1 parent df888a1 commit 81ddaf2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils/FileDownloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ function getManagedIframe(): { iframe: HTMLIFrameElement, onLoadPromise: Promise

// Dev note: the reassignment warnings are entirely incorrect here.

// @ts-ignore
// noinspection JSConstantReassignment
managedIframe.style = { display: "none" };
managedIframe.style.display = "none";

// @ts-ignore
// noinspection JSConstantReassignment
managedIframe.sandbox = "allow-scripts allow-downloads allow-downloads-without-user-activation";
Expand Down

0 comments on commit 81ddaf2

Please sign in to comment.