🐛 Ooops, fix that
This commit is contained in:
parent
690e8cf75b
commit
037f76c47b
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ Object.setPrototypeOf(BrowserView.prototype, EventEmitter.prototype)
|
|||
|
||||
BrowserView.fromWebContents = (webContents) => {
|
||||
for (const view of BrowserView.getAllViews()) {
|
||||
if (view.webContents.equal(webContents)) return window
|
||||
if (view.webContents.equal(webContents)) return view
|
||||
}
|
||||
|
||||
return null
|
||||
|
|
Loading…
Reference in a new issue