Eliminate HIDE_DEV_TOOLS environment variable. Hide in test env.
FREEBIE
This commit is contained in:
parent
f84d8038c1
commit
fd8b8910a3
3 changed files with 3 additions and 4 deletions
2
main.js
2
main.js
|
@ -146,7 +146,7 @@ function createWindow () {
|
|||
mainWindow.loadURL(prepareURL([__dirname, 'background.html']));
|
||||
}
|
||||
|
||||
if (config.get('openDevTools') && !process.env.HIDE_DEV_TOOLS) {
|
||||
if (config.get('openDevTools')) {
|
||||
// Open the DevTools.
|
||||
mainWindow.webContents.openDevTools()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue