From faa72fd97cd7c2bfd49806e48d913a26925870de Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Thu, 25 Apr 2024 23:10:03 -0700 Subject: [PATCH] Update UIWindow.js --- src/UI/UIWindow.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/UI/UIWindow.js b/src/UI/UIWindow.js index 88772c590..3463428c0 100644 --- a/src/UI/UIWindow.js +++ b/src/UI/UIWindow.js @@ -307,7 +307,9 @@ async function UIWindow(options) { style="${!options.has_head ? ' height: 100%;' : ''}">`; // iframe, for apps if(options.iframe_url || options.iframe_srcdoc){ - // iframe + // `; + sandbox="allow-forms allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox ${options.iframe_srcdoc ? '' : 'allow-same-origin'} allow-scripts allow-top-navigation-by-user-activation allow-downloads allow-presentation allow-storage-access-by-user-activation">`; } // custom body else if(options.body_content !== undefined){