Skip to content

Commit

Permalink
fix: only set enable-features if the user hasn't
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-re-ka authored Sep 7, 2021
1 parent 227e2e0 commit f3dcdda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ app.commandLine.appendSwitch('disable-features', 'IOSurfaceCapturer');
app.commandLine.appendSwitch('force-fieldtrials', 'WebRTC-Audio-Red-For-Opus/Enabled/');

// Enable optional PipeWire support.
app.commandLine.appendSwitch('enable-features', 'WebRTCPipeWireCapturer');
if (!app.commandLine.hasSwitch('enable-features')) {
app.commandLine.appendSwitch('enable-features', 'WebRTCPipeWireCapturer');
}

// Needed until robot.js is fixed: https://github.com/octalmage/robotjs/issues/580
app.allowRendererProcessReuse = false;
Expand Down

0 comments on commit f3dcdda

Please sign in to comment.