Skip to content

Commit

Permalink
Clean up some of the unnecessary console warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jelveh committed Apr 25, 2024
1 parent f5f35f2 commit c4b2d98
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 0 additions & 3 deletions packages/backend/src/temp/puter_page_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
1 change: 0 additions & 1 deletion src/IPC.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ window.addEventListener('message', async (event) => {
// windowFocused
//-------------------------------------------------
else if(event.data.msg === 'windowFocused'){
console.log('windowFocused');
}
//--------------------------------------------------------
// ALERT
Expand Down
10 changes: 7 additions & 3 deletions src/UI/UIWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4b2d98

Please sign in to comment.