docs: Improve the doc about BrowserWindow title property (#16086)

* Improve the doc about BrowserWindow title property

* Update docs/api/browser-window.md

Co-Authored-By: popod <popod@me.com>
This commit is contained in:
popod 2018-12-17 21:16:24 +01:00 committed by Shelley Vohr
parent 7a6fe00f49
commit f6081b18b6

View file

@ -179,7 +179,7 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
* `skipTaskbar` Boolean (optional) - Whether to show the window in taskbar. Default is * `skipTaskbar` Boolean (optional) - Whether to show the window in taskbar. Default is
`false`. `false`.
* `kiosk` Boolean (optional) - The kiosk mode. Default is `false`. * `kiosk` Boolean (optional) - The kiosk mode. Default is `false`.
* `title` String (optional) - Default window title. Default is `"Electron"`. * `title` String (optional) - Default window title. Default is `"Electron"`. If the HTML tag `<title>` is defined in the HTML file loaded by `loadURL()`, this property will be ignored.
* `icon` ([NativeImage](native-image.md) | String) (optional) - The window icon. On Windows it is * `icon` ([NativeImage](native-image.md) | String) (optional) - The window icon. On Windows it is
recommended to use `ICO` icons to get best visual effects, you can also recommended to use `ICO` icons to get best visual effects, you can also
leave it undefined so the executable's icon will be used. leave it undefined so the executable's icon will be used.
@ -1110,7 +1110,7 @@ Changes the title of native window to `title`.
Returns `String` - The title of the native window. Returns `String` - The title of the native window.
**Note:** The title of web page can be different from the title of the native **Note:** The title of the web page can be different from the title of the native
window. window.
#### `win.setSheetOffset(offsetY[, offsetX])` _macOS_ #### `win.setSheetOffset(offsetY[, offsetX])` _macOS_