Update BrowserView docs. Fixes #9553

This commit is contained in:
Javan Makhmali 2017-05-22 13:41:01 -04:00 committed by GitHub
parent 8b22108b5a
commit b07a6af713

View file

@ -28,8 +28,8 @@ let view = new BrowserView({
nodeIntegration: false
}
})
win.addChildView(view)
view.setBounds(0, 0, 300, 300)
win.setBrowserView(view)
view.setBounds({ x: 0, y: 0, width: 300, height: 300 })
view.webContents.loadURL('https://electron.atom.io')
```