Skip to content

Commit dc5f61b

Browse files
committed
Add screen-wake-lock to iframe allow attribute
1 parent 8587725 commit dc5f61b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/src/UI/UIWindow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ async function UIWindow (options) {
404404
style="${!options.has_head ? ' height: 100%;' : ''}">`;
405405
// iframe, for apps
406406
if ( options.iframe_url || options.iframe_srcdoc ) {
407-
let allow_str = 'picture-in-picture; document-picture-in-picture; camera; encrypted-media; gamepad; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; fullscreen; web-share; file-system-handle; local-storage; downloads;';
407+
let allow_str = 'screen-wake-lock; picture-in-picture; document-picture-in-picture; camera; encrypted-media; gamepad; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; fullscreen; web-share; file-system-handle; local-storage; downloads;';
408408
if ( window.co_isolation_enabled )
409409
{
410410
allow_str += ' cross-origin-isolated;';

0 commit comments

Comments
 (0)