diff --git a/src/common/module-names.ts b/src/common/module-names.ts index 0217f67..f14676f 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()) { +if (!features || !features.isDesktopCapturerEnabled || features.isDesktopCapturerEnabled()) { browserModuleNames.push('desktopCapturer'); }