Skip to content

Commit 1afb727

Browse files
committed
remove non-standard Permissions-Policy directives from iframeAllow; fixes runtime warns in browser console
1 parent 95eb61d commit 1afb727

File tree

1 file changed

+0
-2
lines changed
  • packages/jsrepl/src/app/repl/[[...slug]]/components

1 file changed

+0
-2
lines changed

packages/jsrepl/src/app/repl/[[...slug]]/components/preview.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import { PreviewPosition } from '@/types'
2222
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy#directives
2323
const iframeAllow = [
2424
'accelerometer',
25-
'ambient-light-sensor',
2625
'attribution-reporting',
2726
'autoplay',
2827
'bluetooth',
@@ -48,7 +47,6 @@ const iframeAllow = [
4847
'publickey-credentials-get',
4948
'screen-wake-lock',
5049
'serial',
51-
'speaker-selection',
5250
'usb',
5351
'web-share',
5452
'window-management',

0 commit comments

Comments
 (0)