@@ -148,6 +148,8 @@ BrowserWindow.fromBrowserView = (browserView) => {
for (const window of BrowserWindow.getAllWindows()) {
if (window.getBrowserView() === browserView) return window
}
+
+ return null
BrowserWindow.fromDevToolsWebContents = (webContents) => {