mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-12-22 21:29:23 +01:00
Update frame.ts - 'allow-downloads' added to sanbox attribute (#84)
This commit is contained in:
parent
ab10797f39
commit
0cd6422f74
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ export class CustomFrame {
|
||||||
} else {
|
} else {
|
||||||
this.frame = parent.doc.createElement("iframe");
|
this.frame = parent.doc.createElement("iframe");
|
||||||
parent.appendChild(this.frame);
|
parent.appendChild(this.frame);
|
||||||
this.frame.setAttribute("sandbox", "allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation");
|
this.frame.setAttribute("sandbox", "allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation allow-downloads");
|
||||||
this.frame.setAttribute("allow", "encrypted-media; fullscreen; oversized-images; picture-in-picture; sync-xhr; geolocation;");
|
this.frame.setAttribute("allow", "encrypted-media; fullscreen; oversized-images; picture-in-picture; sync-xhr; geolocation;");
|
||||||
style += `transform: scale(${this.data.zoomLevel}); transform-origin: 0 0;`;
|
style += `transform: scale(${this.data.zoomLevel}); transform-origin: 0 0;`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue