SymphonyElectron/js/utils/misc.js

17 lines
396 B
JavaScript
Raw Normal View History

2017-03-09 12:12:28 -06:00
'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');
2017-03-09 12:12:28 -06:00
const isNodeEnv = !!process.env.NODE_ENV;
2017-03-09 12:12:28 -06:00
module.exports = {
isDevEnv: isDevEnv,
isMac: isMac,
isWindowsOS: isWindowsOS,
isNodeEnv: isNodeEnv
2017-03-09 12:12:28 -06:00
};