Merge pull request #9554 from javan/patch-2

Update BrowserView docs. Fixes #9553
This commit is contained in:
Kevin Sawicki 2017-05-22 10:43:15 -07:00 committed by GitHub
commit 6bcf3597c2

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')
```