🔧 Return null if not found

This commit is contained in:
Felix Rieseberg 2017-11-22 15:48:11 -08:00
parent 8f20ce6dcf
commit 7630ac6e90

View file

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