Skip to content

Commit

Permalink
electron now giving permission for user media request (#10204)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwunderl committed Sep 26, 2024
1 parent 750b718 commit 2c56364
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/src/greenscreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ function isMediaDevicesSupported(): boolean {
return typeof navigator !== undefined
&& !!navigator.mediaDevices
&& !!navigator.mediaDevices.enumerateDevices
&& !!navigator.mediaDevices.getUserMedia
&& !pxt.BrowserUtils.isElectron();
&& !!navigator.mediaDevices.getUserMedia;
}

export class WebCam extends data.Component<WebCamProps, WebCamState> {
Expand Down

0 comments on commit 2c56364

Please sign in to comment.