Skip to content

Commit

Permalink
fix: open dev tools in dev only
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Oct 4, 2021
1 parent 619f78e commit 9772367
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const createWindow = () => {
mainWindow.loadURL(MAIN_WINDOW_WEBPACK_ENTRY);

// Open the DevTools.
mainWindow.webContents.openDevTools();
if (process.env.NODE_ENV === 'development') {
mainWindow.webContents.openDevTools();
}
};

// This method will be called when Electron has finished
Expand Down

0 comments on commit 9772367

Please sign in to comment.