mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-08 07:28:26 +00:00
Merge pull request #6561 from matrix-org/travis/fix-download-frame
Properly set style attribute on shared usercontent iframe
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user