Skip to content

Commit bd5d0d0

Browse files
committed
fix: copy as png. Close #350
1 parent 5f36611 commit bd5d0d0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/main/Ui/Tab.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,18 @@ export default class Tab {
161161
callback: (permissionGranted: boolean) => void,
162162
details: PermissionRequestHandlerHandlerDetails,
163163
) {
164+
const allowByDefault = [
165+
"fullscreen",
166+
"pointerLock",
167+
"clipboard-read",
168+
"clipboard-write",
169+
"clipboard-sanitized-write",
170+
];
171+
172+
if (allowByDefault.includes(permission)) {
173+
return callback(true);
174+
}
175+
164176
if (permission === "media") {
165177
if (this.isUsingMicrophone) {
166178
return callback(true);

0 commit comments

Comments
 (0)