Allow ambient-light-sensor permission in preview iframe

This commit is contained in:
Alex Gleason committed 2026-04-25 18:04:44 -05:00
1 parent dd078ed17d
commit a7d026e51a
1 file changed
+1 -1
+1 -1
View File
@@ -726,7 +726,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable
src={`${previewOrigin}/`}
className="w-full h-full border-0"
title="Project Preview"
allow="microphone; camera; display-capture; geolocation; clipboard-read; clipboard-write; encrypted-media; fullscreen; autoplay; midi; accelerometer; gyroscope; magnetometer; payment; usb; xr-spatial-tracking"
allow="microphone; camera; display-capture; geolocation; clipboard-read; clipboard-write; encrypted-media; fullscreen; autoplay; midi; accelerometer; gyroscope; magnetometer; ambient-light-sensor; payment; usb; xr-spatial-tracking"
/>
</div>
) : (