Browse Source

Clean up some of the unnecessary console warnings

Nariman Jelveh 1 year ago
parent
commit
c4b2d9861f
3 changed files with 7 additions and 7 deletions
  1. 0 3
      packages/backend/src/temp/puter_page_loader.js
  2. 0 1
      src/IPC.js
  3. 7 3
      src/UI/UIWindow.js

+ 0 - 3
packages/backend/src/temp/puter_page_loader.js

@@ -75,9 +75,6 @@ const generate_puter_page_html = ({
     <meta property="og:description" content="${e((short_description).replace(/\n/g, " "))}">
     <meta property="og:image" content="${asset_dir}/images/screenshot.png">
 
-    <!-- disable iframes -->
-    <meta http-equiv="X-Frame-Options" content="sameorigin">
-
     <!-- Twitter meta tags -->
     <meta name="twitter:card" content="summary_large_image">
     <meta property="twitter:domain" content="puter.com">

+ 0 - 1
src/IPC.js

@@ -103,7 +103,6 @@ window.addEventListener('message', async (event) => {
     // windowFocused
     //-------------------------------------------------
     else if(event.data.msg === 'windowFocused'){
-        console.log('windowFocused');
     }
     //--------------------------------------------------------
     // ALERT

+ 7 - 3
src/UI/UIWindow.js

@@ -311,11 +311,15 @@ async function UIWindow(options) {
                 h += `<iframe tabindex="-1"
                         data-app="${html_encode(options.app)}"
                         class="window-app-iframe" 
-                        allowtransparency="true" allowpaymentrequest="true" allowfullscreen="true"
-                        frameborder="0" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen"
+                        frameborder="0" 
                         ${options.iframe_url ? 'src="'+ html_encode(options.iframe_url)+'"' : ''}
                         ${options.iframe_srcdoc ? 'srcdoc="'+ html_encode(options.iframe_srcdoc) +'"' : ''}
-                        allow = "accelerometer; camera; encrypted-media; gamepad; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen;"
+                        allow = "accelerometer; camera; encrypted-media; gamepad; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; fullscreen;"
+                        allowtransparency="true"
+                        allowpaymentrequest="true" 
+                        allowfullscreen="true"
+                        webkitallowfullscreen="webkitallowfullscreen" 
+                        mozallowfullscreen="mozallowfullscreen"
                         sandbox="allow-forms allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation allow-downloads allow-presentation allow-storage-access-by-user-activation"></iframe>`;
             }
             // custom body