SymphonyElectron/js/utils/misc.js

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