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)
|
||||
streamWindow.reloadView(msg.viewIdx)
|
||||
} else if (msg.type === 'browse' || msg.type === 'dev-tools') {
|
||||
if (
|
||||
msg.type === 'dev-tools' &&
|
||||
browseWindow &&
|
||||
!browseWindow.isDestroyed()
|
||||
) {
|
||||
if (browseWindow && !browseWindow.isDestroyed()) {
|
||||
// DevTools needs a fresh webContents to work. Close any existing window.
|
||||
browseWindow.destroy()
|
||||
browseWindow = null
|
||||
|
||||
Reference in New Issue
Block a user