From 0c0197c74a2501a68145cb126750dd5044bc11e6 Mon Sep 17 00:00:00 2001 From: Erick Zhao Date: Wed, 24 Jan 2024 13:54:19 -0800 Subject: [PATCH] fix: optional isViewApiEnabled call (#180) fix: option isViewApiEnabled call --- src/common/module-names.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/module-names.ts b/src/common/module-names.ts index 6544f03..e561a07 100644 --- a/src/common/module-names.ts +++ b/src/common/module-names.ts @@ -50,6 +50,6 @@ if (features?.isDesktopCapturerEnabled?.() !== false) { browserModuleNames.push('desktopCapturer'); } -if (!features || features.isViewApiEnabled()) { +if (features?.isViewApiEnabled?.() !== false) { browserModuleNames.push('ImageView'); }