We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f36611 commit bd5d0d0Copy full SHA for bd5d0d0
1 file changed
src/main/Ui/Tab.ts
@@ -161,6 +161,18 @@ export default class Tab {
161
callback: (permissionGranted: boolean) => void,
162
details: PermissionRequestHandlerHandlerDetails,
163
) {
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
176
if (permission === "media") {
177
if (this.isUsingMicrophone) {
178
return callback(true);
0 commit comments