Skip to content

Commit

Permalink
fix: features.isDesktopCapturerEnabled error (#166)
Browse files Browse the repository at this point in the history
fix: features.isDesktopCapturerEnabled error
  • Loading branch information
codebytere committed Oct 9, 2023
1 parent 486285a commit 168b467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/module-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const browserModuleNames = [

const features = getElectronBinding('features');

if (!features || !features.isDesktopCapturerEnabled || features.isDesktopCapturerEnabled()) {
if (features?.isDesktopCapturerEnabled?.() !== false) {
browserModuleNames.push('desktopCapturer');
}

Expand Down

0 comments on commit 168b467

Please sign in to comment.