diff --git a/js/desktopCapturer/getSource.js b/js/desktopCapturer/getSource.js index 68456943..81022220 100644 --- a/js/desktopCapturer/getSource.js +++ b/js/desktopCapturer/getSource.js @@ -59,7 +59,7 @@ function getSource(options, callback) { }; } - if (isWindowsOS) { + if (isWindowsOS && captureWindow) { /** * Sets the captureWindow to false if Desktop composition * is disabled otherwise true diff --git a/js/desktopCapturer/getSources.js b/js/desktopCapturer/getSources.js index 71061b3b..d858d176 100644 --- a/js/desktopCapturer/getSources.js +++ b/js/desktopCapturer/getSources.js @@ -50,7 +50,7 @@ function getSources(options, callback) { }; } - if (isWindowsOS) { + if (isWindowsOS && captureWindow) { /** * Sets the captureWindow to false if Desktop composition * is disabled otherwise true