aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuka <yuka@yuka.dev>2021-09-07 09:45:49 +0200
committerGitHub <noreply@github.com>2021-09-07 09:45:49 +0200
commitf3dcdda41bb70264b199eff862c6a7f0aa6b8927 (patch)
treefb89f572626c0cd82958290e97ffe0c1c5e020cb
parent227e2e0a710ad860f4f01232a25e56ecf8d5e448 (diff)
fix: only set `enable-features` if the user hasn't
-rw-r--r--main.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.js b/main.js
index a1f76e8..70530ea 100644
--- a/main.js
+++ b/main.js
@@ -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;