Eliminate HIDE_DEV_TOOLS environment variable. Hide in test env.

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-05-16 09:11:58 -07:00
parent f84d8038c1
commit fd8b8910a3
No known key found for this signature in database
GPG Key ID: A4931C09644C654B
3 changed files with 3 additions and 4 deletions

View File

@ -355,8 +355,7 @@ module.exports = function(grunt) {
path: path.join(__dirname, 'node_modules', '.bin', 'electron'),
args: [path.join(__dirname, 'main.js')],
env: {
NODE_ENV: environment,
HIDE_DEV_TOOLS: true
NODE_ENV: environment
}
});

View File

@ -1,5 +1,5 @@
{
"storageProfile": "test",
"disableAutoUpdate": true,
"openDevTools": true
"openDevTools": false
}

View File

@ -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()
}