mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Electron-139 - Updated the if condition
This commit is contained in:
parent
ad307d406f
commit
7ef055c63c
@ -13,7 +13,7 @@
|
|||||||
// electron: https://github.com/electron/electron/issues/9312
|
// electron: https://github.com/electron/electron/issues/9312
|
||||||
|
|
||||||
const { ipcRenderer, remote } = require('electron');
|
const { ipcRenderer, remote } = require('electron');
|
||||||
const { isMac } = require('../utils/misc');
|
const { isWindowsOS } = require('../utils/misc');
|
||||||
|
|
||||||
let nextId = 0;
|
let nextId = 0;
|
||||||
let includes = [].includes;
|
let includes = [].includes;
|
||||||
@ -53,7 +53,7 @@ function getSources(options, callback) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isMac) {
|
if (isWindowsOS) {
|
||||||
/**
|
/**
|
||||||
* Sets the captureWindow to false if Desktop composition
|
* Sets the captureWindow to false if Desktop composition
|
||||||
* is disabled otherwise true
|
* is disabled otherwise true
|
||||||
|
@ -4,11 +4,13 @@ const isDevEnv = process.env.ELECTRON_DEV ?
|
|||||||
process.env.ELECTRON_DEV.trim().toLowerCase() === 'true' : false;
|
process.env.ELECTRON_DEV.trim().toLowerCase() === 'true' : false;
|
||||||
|
|
||||||
const isMac = (process.platform === 'darwin');
|
const isMac = (process.platform === 'darwin');
|
||||||
|
const isWindowsOS = (process.platform === 'win32');
|
||||||
|
|
||||||
const isNodeEnv = !!process.env.NODE_ENV;
|
const isNodeEnv = !!process.env.NODE_ENV;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
isDevEnv: isDevEnv,
|
isDevEnv: isDevEnv,
|
||||||
isMac: isMac,
|
isMac: isMac,
|
||||||
|
isWindowsOS: isWindowsOS,
|
||||||
isNodeEnv: isNodeEnv
|
isNodeEnv: isNodeEnv
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user