diff --git a/gui/gui.js b/gui/gui.js index 02748b2d5..22b448b9d 100644 --- a/gui/gui.js +++ b/gui/gui.js @@ -143,6 +143,7 @@ class Menu { visible: false, click (_, win) { const [view] = win.getBrowserViews() + if (!view) return view.webContents.openDevTools({ mode: 'detach' }) } }])