diff --git a/src/electron/background.ts b/src/electron/background.ts
index ddfdae4..b2a1e68 100644
--- a/src/electron/background.ts
+++ b/src/electron/background.ts
@@ -65,6 +65,7 @@ function createWindow() {
if (singleInstance(app, mainWindow)) return
// Open the DevTools.
+ !isProduction &&
mainWindow.webContents.openDevTools({
mode: 'bottom'
})
@@ -199,8 +200,8 @@ ipcMain.handle(
})
mainWindow.webContents.once('did-finish-load', () => {
- mainWindow.show();
- });
+ mainWindow.show()
+ })
mainWindow.loadURL(opt.url)
}