From 0cd6422f74b47c4825095a85db4433bfba5c743b Mon Sep 17 00:00:00 2001 From: Fruffel <32261898+Fruffel@users.noreply.github.com> Date: Tue, 11 Jul 2023 11:04:39 +0200 Subject: [PATCH] Update frame.ts - 'allow-downloads' added to sanbox attribute (#84) --- src/frame.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frame.ts b/src/frame.ts index 1167e86..56e8c76 100644 --- a/src/frame.ts +++ b/src/frame.ts @@ -35,7 +35,7 @@ export class CustomFrame { } else { this.frame = parent.doc.createElement("iframe"); 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;"); style += `transform: scale(${this.data.zoomLevel}); transform-origin: 0 0;`; }