Skip to content

Commit e1c3014

Browse files
steveseguinclaude
andcommitted
Fix permission handler partition mismatch
Permission handler was set for "default" partition but windows use "persist:abc". Also added videoCapture, mediaKeySystem, media permissions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9fa80d5 commit e1c3014

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

main.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4223,14 +4223,17 @@ function checkProtocolHandler() {
42234223
app.whenReady().then(function(){
42244224
console.log("APP READY");
42254225

4226-
// Set up permission handling
4227-
session.fromPartition("default").setPermissionRequestHandler((webContents, permission, callback) => {
4226+
// Set up permission handling for the session partition used by windows
4227+
session.fromPartition("persist:abc").setPermissionRequestHandler((webContents, permission, callback) => {
42284228
try {
42294229
let allowedPermissions = [
4230-
"audioCapture",
4231-
"desktopCapture",
4232-
"pageCapture",
4233-
"tabCapture",
4230+
"audioCapture",
4231+
"videoCapture",
4232+
"desktopCapture",
4233+
"pageCapture",
4234+
"tabCapture",
4235+
"mediaKeySystem",
4236+
"media",
42344237
"experimental"
42354238
];
42364239

0 commit comments

Comments
 (0)