Properly set style attribute on shared usercontent iframe

Fixes https://github.com/vector-im/element-web/issues/18414
This commit is contained in:
Travis Ralston 2021-08-05 11:21:22 -06:00
parent df888a1886
commit 81ddaf2efa

View file

@ -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";