From ba1c6df4183c8916e33e98bd9cee0a72978be873 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 28 Apr 2020 00:42:36 +0100 Subject: [PATCH] enable iframe sandboxing for the error fallback Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vector/index.ts b/src/vector/index.ts index 717096e0..b3e25a58 100644 --- a/src/vector/index.ts +++ b/src/vector/index.ts @@ -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%";