diff --git a/pxtblocks/layout.ts b/pxtblocks/layout.ts index a78a43a40e4..e374989b5c6 100644 --- a/pxtblocks/layout.ts +++ b/pxtblocks/layout.ts @@ -226,7 +226,9 @@ export function flow(ws: Blockly.WorkspaceSvg, opts?: FlowOptions) { } export function screenshotEnabled(): boolean { - return !pxt.BrowserUtils.isIE() + const disableForMacIos = pxt.appTarget.appTheme.disableFileAccessinMaciOs && (pxt.BrowserUtils.isMac() || pxt.BrowserUtils.isIOS()); + const disableForAndriod = pxt.appTarget.appTheme.disableFileAccessinAndroid && pxt.BrowserUtils.isAndroid(); + return !disableForMacIos && !pxt.BrowserUtils.isIE() && !disableForAndriod; } export function screenshotAsync(ws: Blockly.WorkspaceSvg, pixelDensity?: number, encodeBlocks?: boolean): Promise {