mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 03:05:51 +03:00
enable iframe sandboxing for the error fallback
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
26b2a18b6d
commit
ba1c6df418
1 changed files with 2 additions and 0 deletions
|
@ -208,6 +208,8 @@ start().catch(err => {
|
|||
// with some basic styling to make the iframe full page
|
||||
delete document.body.style.height;
|
||||
const iframe = document.createElement("iframe");
|
||||
// @ts-ignore - typescript seems to only like the IE syntax for iframe sandboxing
|
||||
iframe["sandbox"] = "";
|
||||
iframe.src = supportedBrowser ? "static/unable-to-load.html" : "static/incompatible-browser.html";
|
||||
iframe.style.width = "100%";
|
||||
iframe.style.height = "100%";
|
||||
|
|
Loading…
Reference in a new issue