mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Update BrowserView docs. Fixes #9553
This commit is contained in:
@@ -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')
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user