diff --git a/src/utils/isProduction.js b/src/utils/isProduction.js index 9816a2fb6..3eefeaa9f 100644 --- a/src/utils/isProduction.js +++ b/src/utils/isProduction.js @@ -9,7 +9,7 @@ import electron from 'electron'; const _isProduction = !/node_modules[\\/]electron[\\/]/.test( // $FlowFixMe: execPath exists, but is not in electron API spec - electron.remote.process.execPath, + process.execPath || electron.remote.process.execPath, ); export default function isProduction(): boolean {