Skip to content

Commit fa3ed4c

Browse files
committed
Fix crash on opening browse when devtools open
1 parent d63a508 commit fa3ed4c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/streamwall/src/main/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,7 @@ async function main(argv: ReturnType<typeof parseArgs>) {
340340
console.debug('Reloading view:', msg.viewIdx)
341341
streamWindow.reloadView(msg.viewIdx)
342342
} else if (msg.type === 'browse' || msg.type === 'dev-tools') {
343-
if (
344-
msg.type === 'dev-tools' &&
345-
browseWindow &&
346-
!browseWindow.isDestroyed()
347-
) {
343+
if (browseWindow && !browseWindow.isDestroyed()) {
348344
// DevTools needs a fresh webContents to work. Close any existing window.
349345
browseWindow.destroy()
350346
browseWindow = null

0 commit comments

Comments
 (0)