mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-10-31 19:36:39 -07:00
5 lines
251 B
JavaScript
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))
|