mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-11-22 09:43:30 +01:00
allow top navigation by user activation
This commit is contained in:
parent
d019b1d381
commit
4b4f27291a
1 changed files with 1 additions and 1 deletions
2
main.ts
2
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 = () => {
|
||||
|
|
Loading…
Reference in a new issue