fix(desktop): clean single-instance lock exit and suppress devtools console crash
This commit is contained in:
parent
0dc6a1dc93
commit
eedbe97d02
3 changed files with 18 additions and 13 deletions
|
|
@ -115,7 +115,7 @@ export function createMainWindow(): BrowserWindow {
|
|||
mainWindow?.restore()
|
||||
mainWindow?.focus()
|
||||
mainWindow?.flashFrame(true)
|
||||
if (is.dev && process.env['ELECTRON_RENDERER_URL']) {
|
||||
if (is.dev && process.env['ELECTRON_OPEN_DEVTOOLS'] === '1') {
|
||||
mainWindow?.webContents.openDevTools({ mode: 'right' })
|
||||
}
|
||||
logger.info('Main window shown')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue