Skip to content

Commit

Permalink
add check for android as well
Browse files Browse the repository at this point in the history
  • Loading branch information
srietkerk committed Oct 28, 2024
1 parent 5169f84 commit e50c153
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pxtblocks/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ export function flow(ws: Blockly.WorkspaceSvg, opts?: FlowOptions) {

export function screenshotEnabled(): boolean {
const disableForMacIos = pxt.appTarget.appTheme.disableFileAccessinMaciOs && (pxt.BrowserUtils.isMac() || pxt.BrowserUtils.isIOS());
return !disableForMacIos && !pxt.BrowserUtils.isIE();
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<string> {
Expand Down

0 comments on commit e50c153

Please sign in to comment.