🔨 Refactor: open devtools in detached window

This commit is contained in:
萌萌哒赫萝 2023-09-05 23:14:41 -07:00
parent 566c5df9be
commit 883e5a1e6d

View File

@ -144,7 +144,7 @@ const buildMainPageMenu = (win: BrowserWindow) => {
{
label: T('SHOW_DEVTOOLS'),
click () {
win?.webContents?.openDevTools()
win?.webContents?.openDevTools({ mode: 'detach' })
}
}
]