1
0
mirror of https://github.com/dscalzi/HeliosLauncher.git synced 2025-01-10 04:52:12 -08:00
HeliosLauncher/app/assets/js/isdev.js
2018-09-23 02:19:16 -04:00

5 lines
251 B
JavaScript

'use strict'
const getFromEnv = parseInt(process.env.ELECTRON_IS_DEV, 10) === 1
const isEnvSet = 'ELECTRON_IS_DEV' in process.env
module.exports = isEnvSet ? getFromEnv : (process.defaultApp || /node_modules[\\/]electron[\\/]/.test(process.execPath))