Merge pull request #9554 from javan/patch-2
Update BrowserView docs. Fixes #9553
This commit is contained in:
commit
6bcf3597c2
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue