mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
Fix crash on opening browse when devtools open
This commit is contained in:
@@ -340,11 +340,7 @@ async function main(argv: ReturnType<typeof parseArgs>) {
|
|||||||
console.debug('Reloading view:', msg.viewIdx)
|
console.debug('Reloading view:', msg.viewIdx)
|
||||||
streamWindow.reloadView(msg.viewIdx)
|
streamWindow.reloadView(msg.viewIdx)
|
||||||
} else if (msg.type === 'browse' || msg.type === 'dev-tools') {
|
} else if (msg.type === 'browse' || msg.type === 'dev-tools') {
|
||||||
if (
|
if (browseWindow && !browseWindow.isDestroyed()) {
|
||||||
msg.type === 'dev-tools' &&
|
|
||||||
browseWindow &&
|
|
||||||
!browseWindow.isDestroyed()
|
|
||||||
) {
|
|
||||||
// DevTools needs a fresh webContents to work. Close any existing window.
|
// DevTools needs a fresh webContents to work. Close any existing window.
|
||||||
browseWindow.destroy()
|
browseWindow.destroy()
|
||||||
browseWindow = null
|
browseWindow = null
|
||||||
|
|||||||
Reference in New Issue
Block a user