🐛 Ooops, fix that

This commit is contained in:
Felix Rieseberg 2017-11-22 17:07:57 -08:00
parent 690e8cf75b
commit 037f76c47b

View file

@ -7,7 +7,7 @@ Object.setPrototypeOf(BrowserView.prototype, EventEmitter.prototype)
BrowserView.fromWebContents = (webContents) => { BrowserView.fromWebContents = (webContents) => {
for (const view of BrowserView.getAllViews()) { for (const view of BrowserView.getAllViews()) {
if (view.webContents.equal(webContents)) return window if (view.webContents.equal(webContents)) return view
} }
return null return null