diff --git a/src/common/module-names.ts b/src/common/module-names.ts index f14676f..6544f03 100644 --- a/src/common/module-names.ts +++ b/src/common/module-names.ts @@ -46,7 +46,7 @@ export const browserModuleNames = [ const features = getElectronBinding('features'); -if (!features || !features.isDesktopCapturerEnabled || features.isDesktopCapturerEnabled()) { +if (features?.isDesktopCapturerEnabled?.() !== false) { browserModuleNames.push('desktopCapturer'); }