mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-11-25 10:38:35 +01:00
added some attributes to the frame to make it more permissible
This commit is contained in:
parent
88a38de4a2
commit
e701632c3e
1 changed files with 2 additions and 0 deletions
2
main.ts
2
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) {
|
||||
|
|
Loading…
Reference in a new issue