Browse Source
HIDE_DEV_WINDOW env var to prevent opening of dev window
master
meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
1 changed files with
8 additions and
2 deletions
-
src/main/app.js
|
|
@ -11,7 +11,13 @@ let mainWindow = null |
|
|
|
|
|
|
|
let forceClose = false |
|
|
|
|
|
|
|
const { UPGRADE_EXTENSIONS, ELECTRON_WEBPACK_WDS_PORT, DEV_TOOLS, DEV_TOOLS_MODE } = process.env |
|
|
|
const { |
|
|
|
UPGRADE_EXTENSIONS, |
|
|
|
ELECTRON_WEBPACK_WDS_PORT, |
|
|
|
DEV_TOOLS, |
|
|
|
DEV_TOOLS_MODE, |
|
|
|
HIDE_DEV_WINDOW, |
|
|
|
} = process.env |
|
|
|
|
|
|
|
const devTools = __DEV__ || DEV_TOOLS |
|
|
|
|
|
|
@ -211,7 +217,7 @@ app.on('ready', async () => { |
|
|
|
await installExtensions() |
|
|
|
} |
|
|
|
|
|
|
|
if (devTools) { |
|
|
|
if (devTools && !HIDE_DEV_WINDOW) { |
|
|
|
createDevWindow() |
|
|
|
} |
|
|
|
|
|
|
|