Skip to content

Commit

Permalink
fix: copy as png. Close #350
Browse files Browse the repository at this point in the history
  • Loading branch information
ChugunovRoman committed Nov 17, 2023
1 parent 5f36611 commit bd5d0d0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/Ui/Tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,18 @@ export default class Tab {
callback: (permissionGranted: boolean) => void,
details: PermissionRequestHandlerHandlerDetails,
) {
const allowByDefault = [
"fullscreen",
"pointerLock",
"clipboard-read",
"clipboard-write",
"clipboard-sanitized-write",
];

if (allowByDefault.includes(permission)) {
return callback(true);
}

if (permission === "media") {
if (this.isUsingMicrophone) {
return callback(true);
Expand Down

0 comments on commit bd5d0d0

Please sign in to comment.