Document the return values of all methods in the docs
This commit is contained in:
parent
bf88fe32fd
commit
d2a701a465
22 changed files with 276 additions and 175 deletions
|
@ -138,22 +138,22 @@ The `remote` module has the following methods:
|
|||
|
||||
* `module` String
|
||||
|
||||
Returns the object returned by `require(module)` in the main process.
|
||||
Returns `Object` - The object returned by `require(module)` in the main process.
|
||||
|
||||
### `remote.getCurrentWindow()`
|
||||
|
||||
Returns the [`BrowserWindow`](browser-window.md) object to which this web page
|
||||
Returns `BrowserWindow` - The [`BrowserWindow`](browser-window.md) object to which this web page
|
||||
belongs.
|
||||
|
||||
### `remote.getCurrentWebContents()`
|
||||
|
||||
Returns the [`WebContents`](web-contents.md) object of this web page.
|
||||
Returns `WebContents` - The [`WebContents`](web-contents.md) object of this web page.
|
||||
|
||||
### `remote.getGlobal(name)`
|
||||
|
||||
* `name` String
|
||||
|
||||
Returns the global variable of `name` (e.g. `global[name]`) in the main
|
||||
Returns `any` - The global variable of `name` (e.g. `global[name]`) in the main
|
||||
process.
|
||||
|
||||
## Properties
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue