Merge pull request #507 from feross/fix-is-production
Fix isProduction() detection
This commit is contained in:
commit
90a0ce4a4d
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ function isProduction () {
|
|||
return false
|
||||
}
|
||||
if (process.platform === 'darwin') {
|
||||
return !/\/Electron\.app\/Contents\/MacOS\/Electron$/.test(process.execPath)
|
||||
return !/\/Electron\.app\//.test(process.execPath)
|
||||
}
|
||||
if (process.platform === 'win32') {
|
||||
return !/\\electron\.exe$/.test(process.execPath)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue