'use strict'

const {EventEmitter} = require('events')
const {BrowserView} = process.atomBinding('browser_view')

Object.setPrototypeOf(BrowserView.prototype, EventEmitter.prototype)

BrowserView.fromWebContents = (webContents) => {
  for (const view of BrowserView.getAllViews()) {
    if (view.webContents.equal(webContents)) return window
  }

  return null
}

module.exports = BrowserView

@@ -332,13 +332,11 @@
 urn 
-windo
+vie
 w%0A  

Ooops, fix that