mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-09 13:07:37 +08:00
Allow Web Bluetooth and Web Serial within iframes (#2514)
This commit is contained in:
parent
91b8152488
commit
269df7b8ab
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ export function initializeIframeSource(iframe, iframePort, iframeUrl) {
|
||||||
iframe.sandbox =
|
iframe.sandbox =
|
||||||
"allow-scripts allow-same-origin allow-downloads allow-forms allow-modals allow-popups allow-top-navigation";
|
"allow-scripts allow-same-origin allow-downloads allow-forms allow-modals allow-popups allow-top-navigation";
|
||||||
iframe.allow =
|
iframe.allow =
|
||||||
"accelerometer; ambient-light-sensor; camera; display-capture; encrypted-media; fullscreen; 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; bluetooth; serial";
|
||||||
iframe.src = url;
|
iframe.src = url;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue