Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
fixed devtools opening on production
Browse files Browse the repository at this point in the history
  • Loading branch information
uPPer committed Jan 13, 2017
1 parent 7f5b752 commit bc00dba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/main.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ app.on('ready', async () => {
win = null;
});

// if (process.env.NODE_ENV === 'development') {
if (process.env.NODE_ENV === 'development') {
win.openDevTools();
win.webContents.on('context-menu', (e, props) => {
const { x, y } = props;
Expand All @@ -91,7 +91,7 @@ app.on('ready', async () => {
}
}]).popup(win);
});
// }
}

if (process.platform === 'darwin') {
template = [{
Expand Down

0 comments on commit bc00dba

Please sign in to comment.