From e701632c3e6a5a197fad19f33d8c9dcc7e8dc683 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 23 Mar 2022 12:52:45 +0100 Subject: [PATCH] added some attributes to the frame to make it more permissible --- main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.ts b/main.ts index e347c3a..8a32c4c 100644 --- a/main.ts +++ b/main.ts @@ -90,6 +90,8 @@ class CustomFrameView extends ItemView { let frame = this.contentEl.createEl("iframe"); frame.addClass("custom-frames-frame"); + frame.setAttribute("sandbox", "allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"); + frame.setAttribute("allow", "encrypted-media; fullscreen; oversized-images; picture-in-picture; sync-xhr; geolocation;"); frame.setAttribute("style", `padding: ${this.settings.padding}px`); frame.onload = () => { if (Platform.isDesktopApp) {