From 68d9ed9c00b0aed3bcbf46cd4539a7e322c54efb Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Wed, 20 Jun 2018 11:23:57 +0530 Subject: [PATCH] ELECTRON-568 - Enable applications tab only if it is passed in the types (#406) --- js/desktopCapturer/getSource.js | 2 +- js/desktopCapturer/getSources.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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