Skip to content

Commit ba1c6df

Browse files
committed
enable iframe sandboxing for the error fallback
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 26b2a18 commit ba1c6df

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/vector/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ start().catch(err => {
208208
// with some basic styling to make the iframe full page
209209
delete document.body.style.height;
210210
const iframe = document.createElement("iframe");
211+
// @ts-ignore - typescript seems to only like the IE syntax for iframe sandboxing
212+
iframe["sandbox"] = "";
211213
iframe.src = supportedBrowser ? "static/unable-to-load.html" : "static/incompatible-browser.html";
212214
iframe.style.width = "100%";
213215
iframe.style.height = "100%";

0 commit comments

Comments
 (0)