📝 Fix some old docs.
This commit is contained in:
parent
a7b730654c
commit
7297faf09a
1 changed files with 7 additions and 3 deletions
|
@ -366,14 +366,14 @@ Returns whether the window is in kiosk mode.
|
||||||
|
|
||||||
* `filename` String
|
* `filename` String
|
||||||
|
|
||||||
__OS X Only__ Sets the pathname of the file the window represents, and the icon
|
__OS X Only:__ Sets the pathname of the file the window represents, and the icon
|
||||||
of the file will show in window's title bar.
|
of the file will show in window's title bar.
|
||||||
|
|
||||||
### BrowserWindow.setDocumentEdited(edited)
|
### BrowserWindow.setDocumentEdited(edited)
|
||||||
|
|
||||||
* `edited` Boolean
|
* `edited` Boolean
|
||||||
|
|
||||||
__OS X Only__ Specifies whether the window’s document has been edited, and the
|
__OS X Only:__ Specifies whether the window’s document has been edited, and the
|
||||||
icon in titlebar will become grey when set to `true`.
|
icon in titlebar will become grey when set to `true`.
|
||||||
|
|
||||||
### BrowserWindow.openDevTools()
|
### BrowserWindow.openDevTools()
|
||||||
|
@ -422,12 +422,16 @@ Same with `webContents.loadUrl(url)`.
|
||||||
|
|
||||||
### BrowserWindow.reload()
|
### BrowserWindow.reload()
|
||||||
|
|
||||||
Reloads the current url.
|
Same with `webContents.reload`.
|
||||||
|
|
||||||
### BrowserWindow.setMenu(menu)
|
### BrowserWindow.setMenu(menu)
|
||||||
|
|
||||||
|
* `menu` Menu
|
||||||
|
|
||||||
Sets the `menu` as the window top menu.
|
Sets the `menu` as the window top menu.
|
||||||
|
|
||||||
|
__Note:__ This API is not available on OS X.
|
||||||
|
|
||||||
## Class: WebContents
|
## Class: WebContents
|
||||||
|
|
||||||
A `WebContents` is responsible for rendering and controlling a web page.
|
A `WebContents` is responsible for rendering and controlling a web page.
|
||||||
|
|
Loading…
Reference in a new issue