From 760a5054479d56b502538c8305168dfbb63466c2 Mon Sep 17 00:00:00 2001 From: Joey Wunderlich Date: Fri, 27 Sep 2024 10:27:56 -0700 Subject: [PATCH] disable again on mac, as new mac versions require explicit permissions --- webapp/src/greenscreen.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/src/greenscreen.tsx b/webapp/src/greenscreen.tsx index 3f61d0eccf7..17db9076358 100644 --- a/webapp/src/greenscreen.tsx +++ b/webapp/src/greenscreen.tsx @@ -19,7 +19,8 @@ function isMediaDevicesSupported(): boolean { return typeof navigator !== undefined && !!navigator.mediaDevices && !!navigator.mediaDevices.enumerateDevices - && !!navigator.mediaDevices.getUserMedia; + && !!navigator.mediaDevices.getUserMedia + && !(pxt.BrowserUtils.isPxtElectron() && pxt.BrowserUtils.isMac()); } export class WebCam extends data.Component {