mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
🔧 Return null if not found
This commit is contained in:
@@ -148,6 +148,8 @@ BrowserWindow.fromBrowserView = (browserView) => {
|
||||
for (const window of BrowserWindow.getAllWindows()) {
|
||||
if (window.getBrowserView() === browserView) return window
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
BrowserWindow.fromDevToolsWebContents = (webContents) => {
|
||||
|
||||
Reference in New Issue
Block a user