Allow JS view iframes to enter full screen (#1982)

This commit is contained in:
Jannik Becher 2023-06-16 13:11:18 +02:00 committed by GitHub
parent 7f9ba6989f
commit 9e57b52e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ export function initializeIframeSource(iframe, iframePort, iframeUrl) {
iframe.sandbox =
"allow-scripts allow-same-origin allow-downloads allow-modals allow-popups";
iframe.allow =
"accelerometer; ambient-light-sensor; camera; display-capture; encrypted-media; geolocation; gyroscope; microphone; midi; usb; xr-spatial-tracking; clipboard-read; clipboard-write";
"accelerometer; ambient-light-sensor; camera; display-capture; encrypted-media; fullscreen; geolocation; gyroscope; microphone; midi; usb; xr-spatial-tracking; clipboard-read; clipboard-write";
iframe.src = url;
});
}