Add remote.getCurrentWebContents API

This commit is contained in:
Cheng Zhao 2015-05-11 14:05:20 +08:00
parent fc2bc20572
commit 4c10925694
3 changed files with 15 additions and 1 deletions

View file

@ -138,6 +138,10 @@ Returns the object returned by `require(module)` in the main process.
Returns the [BrowserWindow](browser-window.md) object which this web page
belongs to.
## remote.getCurrentWebContent()
Returns the WebContents object of this web page.
## remote.getGlobal(name)
* `name` String