4
2
Fork 0

disabled openning dev tools on start up, in dev mode

This commit is contained in:
Erastus Amunwe 2020-11-02 09:44:03 +02:00
parent 3fe9f3d53a
commit 9472e7d42b
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ function createWindow() {
if (process.env.WEBPACK_DEV_SERVER_URL) {
// Load the url of the dev server if in development mode
win.loadURL(process.env.WEBPACK_DEV_SERVER_URL)
if (!process.env.IS_TEST) win.webContents.openDevTools()
// if (!process.env.IS_TEST) win.webContents.openDevTools()
} else {
createProtocol('app')
// Load the index.html when not in development