Skip to content

Commit

Permalink
fixed issue with penguinmod image manipulation extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponali committed Mar 23, 2024
1 parent c0b5db4 commit a0fb4d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion files/penguinmod/image-manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,10 @@
}
stageScreenshot(){
// DO NOT REMOVE, USER HAS NOT GIVEN PERMISSION TO SAVE CAMERA IMAGES.
if (this.runtime.ext_videoSensing || this.runtime.ioDevices.video.provider.enabled) {
let a=false,b=false;
try{a=this.runtime.ext_videoSensing}catch{console.log("error with value")}
try{b=this.runtime.ioDevices.video.provider.enabled}catch{console.log("error with value")}
if (a || b) {
// user's camera is on, ask for permission to take a picture of them
if (!(this.isCameraScreenshotEnabled)) {
this.isCameraScreenshotEnabled = ProjectPermissionManager.RequestPermission("cameraPictures");
Expand Down

0 comments on commit a0fb4d7

Please sign in to comment.