build: remove enable_desktop_capturer flag (#38412)
feat: remove enable_desktop_capturer flag Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
parent
13fae292a7
commit
06cc9caeaa
14 changed files with 16 additions and 71 deletions
|
@ -6,15 +6,7 @@ import { ifdescribe, ifit } from './lib/spec-helpers';
|
|||
|
||||
import { closeAllWindows } from './lib/window-helpers';
|
||||
|
||||
const features = process._linkedBinding('electron_common_features');
|
||||
|
||||
ifdescribe(!process.arch.includes('arm') && process.platform !== 'win32')('desktopCapturer', () => {
|
||||
if (!features.isDesktopCapturerEnabled()) {
|
||||
// This condition can't go the `ifdescribe` call because its inner code
|
||||
// it still executed, and if the feature is disabled some function calls here fail.
|
||||
return;
|
||||
}
|
||||
|
||||
let w: BrowserWindow;
|
||||
|
||||
before(async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue