SymphonyElectron/js/utils/misc.js
Kiran Niranjan b4c559c3ee ELECTRON-705 (Add custom title bar support for Window 7) (#490)
* ELECTRON-705 - Add custom title bar support for Window 7

* ELECTRON-705 - Optimize title bar menu selection logic and include detail section

* ELECTRON-705 - Change installer check box titles and des
2018-09-03 16:25:46 +05:30

17 lines
392 B
JavaScript

'use strict';
const isDevEnv = process.env.ELECTRON_DEV ?
process.env.ELECTRON_DEV.trim().toLowerCase() === 'true' : false;
const isMac = (process.platform === 'darwin');
const isWindowsOS = (process.platform === 'win32');
const isNodeEnv = !!process.env.NODE_ENV;
module.exports = {
isDevEnv: isDevEnv,
isMac: isMac,
isWindowsOS: isWindowsOS,
isNodeEnv: isNodeEnv
};