From 4b4f27291ab32cf7c0894b309908378fd7311831 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 25 Mar 2022 15:35:23 +0100 Subject: [PATCH] allow top navigation by user activation --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index b3143f3..3025515 100644 --- a/main.ts +++ b/main.ts @@ -92,7 +92,7 @@ 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("sandbox", "allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"); frame.setAttribute("allow", "encrypted-media; fullscreen; oversized-images; picture-in-picture; sync-xhr; geolocation;"); frame.setAttribute("style", `padding: ${this.settings.padding}px`); frame.onload = () => {