🔧 Return null if not found
This commit is contained in:
parent
8f20ce6dcf
commit
7630ac6e90
1 changed files with 2 additions and 0 deletions
|
@ -148,6 +148,8 @@ BrowserWindow.fromBrowserView = (browserView) => {
|
|||
for (const window of BrowserWindow.getAllWindows()) {
|
||||
if (window.getBrowserView() === browserView) return window
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
BrowserWindow.fromDevToolsWebContents = (webContents) => {
|
||||
|
|
Loading…
Reference in a new issue