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
|
nodeIntegration: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
win.addChildView(view)
|
win.setBrowserView(view)
|
||||||
view.setBounds(0, 0, 300, 300)
|
view.setBounds({ x: 0, y: 0, width: 300, height: 300 })
|
||||||
view.webContents.loadURL('https://electron.atom.io')
|
view.webContents.loadURL('https://electron.atom.io')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue