SymphonyElectron/js/utils/misc.js
2017-07-10 13:09:10 +05:30

15 lines
314 B
JavaScript

'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;
module.exports = {
isDevEnv: isDevEnv,
isMac: isMac,
isNodeEnv: isNodeEnv
};