mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-27 16:37:18 +00:00
allow web-share in iframes
This commit is contained in:
@@ -341,7 +341,7 @@ async function UIWindow(options) {
|
||||
style="${!options.has_head ? ' height: 100%;' : ''}">`;
|
||||
// iframe, for apps
|
||||
if(options.iframe_url || options.iframe_srcdoc){
|
||||
let allow_str = `camera; encrypted-media; gamepad; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; fullscreen;`;
|
||||
let allow_str = `camera; encrypted-media; gamepad; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; fullscreen; web-share;`;
|
||||
if(window.co_isolation_enabled)
|
||||
allow_str += ' cross-origin-isolated;';
|
||||
// <iframe>
|
||||
|
||||
Reference in New Issue
Block a user