Skip to content

Commit

Permalink
feat: Move electronUseGetDisplayMedia to testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Jan 31, 2025
1 parent 0d3304b commit 2a5d7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/RTC/ScreenObtainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const ScreenObtainer = {
_createObtainStreamMethod() {
const supportsGetDisplayMedia = browser.supportsGetDisplayMedia();

if (browser.isElectron() && !this.options.electronUseGetDisplayMedia) {
if (browser.isElectron() && !this.options.testing?.electronUseGetDisplayMedia) {
return this.obtainScreenOnElectron;
} else if (browser.isReactNative() && supportsGetDisplayMedia) {
return this.obtainScreenFromGetDisplayMediaRN;
Expand Down

0 comments on commit 2a5d7fc

Please sign in to comment.