Properly set style attribute on shared usercontent iframe

Fixes https://github.com/vector-im/element-web/issues/18414
pull/21833/head
Travis Ralston 2021-08-05 11:21:22 -06:00
parent df888a1886
commit 81ddaf2efa
1 changed files with 2 additions and 3 deletions

View File

@ -43,9 +43,8 @@ function getManagedIframe(): { iframe: HTMLIFrameElement, onLoadPromise: Promise
// Dev note: the reassignment warnings are entirely incorrect here. // Dev note: the reassignment warnings are entirely incorrect here.
// @ts-ignore managedIframe.style.display = "none";
// noinspection JSConstantReassignment
managedIframe.style = { display: "none" };
// @ts-ignore // @ts-ignore
// noinspection JSConstantReassignment // noinspection JSConstantReassignment
managedIframe.sandbox = "allow-scripts allow-downloads allow-downloads-without-user-activation"; managedIframe.sandbox = "allow-scripts allow-downloads allow-downloads-without-user-activation";