Skip to content

Commit 846ead2

Browse files
authored
Merge pull request #1924 from processing/feature/iframe-serial
Add serial to iframe allow list
2 parents a948256 + 745f74b commit 846ead2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ function PreviewFrame({ fullView }) {
2424
const frameUrl = previewUrl;
2525
const sandboxAttributes = `allow-forms allow-modals allow-pointer-lock allow-popups
2626
allow-same-origin allow-scripts allow-top-navigation-by-user-activation allow-downloads`;
27-
const allow =
28-
'accelerometer; autoplay; camera; encrypted-media; geolocation; gyroscope; microphone; magnetometer; midi; vr;';
27+
const allow = `accelerometer; autoplay; camera; encrypted-media; geolocation;
28+
gyroscope; microphone; magnetometer; midi; serial; vr;`;
2929
return (
3030
<Frame
3131
title="sketch preview"

0 commit comments

Comments
 (0)