Skip to content

Commit

Permalink
eyearesee: show dev tools if DEV_MODE env var exists
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlucas committed Apr 3, 2016
1 parent c107edc commit 4f5a387
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ function setup() {
mainWindow.on('closed', () => {
mainWindow = null
})

if (process.env.DEV_MODE) {
mainWindow.once('show', () => {
console.log('opening dev tools')
mainWindow.openDevTools({
detach: true
})
})
}
}

function setupHome() {
Expand Down

0 comments on commit 4f5a387

Please sign in to comment.