Browse Source

Update BrowserView docs. Fixes #9553

Javan Makhmali 8 years ago
parent
commit
b07a6af713
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/api/browser-view.md

+ 2 - 2
docs/api/browser-view.md

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