allow top navigation by user activation

This commit is contained in:
Ell 2022-03-25 15:35:23 +01:00
parent d019b1d381
commit 4b4f27291a

View file

@ -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 = () => {