Skip to content

Commit

Permalink
Update main.dev.js
Browse files Browse the repository at this point in the history
make devtools visible just in development mode
  • Loading branch information
teonbrooks committed Oct 29, 2019
1 parent d7e224a commit a967350
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ app.on('ready', async () => {
});

mainWindow.setMenu(null);
mainWindow.toggleDevTools();
if (process.env.NODE_ENV === 'development') {
mainWindow.toggleDevTools();
}
// const menuBuilder = new MenuBuilder(mainWindow);
// menuBuilder.buildMenu();
});

0 comments on commit a967350

Please sign in to comment.