Skip to content

Commit e84d0eb

Browse files
authored
Merge pull request electron#6932 from electron/fix-power-save-blocker-doc-bug
Fix some invalid docs
2 parents d6a6385 + 8c0a551 commit e84d0eb

File tree

6 files changed

+8
-11
lines changed

6 files changed

+8
-11
lines changed

docs/api/browser-window.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ The `flags` is an array that can include following `String`s:
10581058

10591059
#### `win.setThumbnailClip(region)` _Windows_
10601060

1061-
* `region` - Object
1061+
* `region` Object - Region of the window
10621062
* `x` Integer - x-position of region
10631063
* `y` Integer - y-position of region
10641064
* `width` Integer - width of region

docs/api/menu-item.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ See [`Menu`](menu.md) for examples.
88

99
Create a new `MenuItem` with the following method:
1010

11-
### new MenuItem(options)
11+
### `new MenuItem(options)`
1212

1313
* `options` Object
1414
* `click` Function - Will be called with

docs/api/power-save-blocker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The `powerSaveBlocker` module has the following methods:
2323
* `prevent-app-suspension` - Prevent the application from being suspended.
2424
Keeps system active but allows screen to be turned off. Example use cases:
2525
downloading a file or playing audio.
26-
* `prevent-display-sleep`- Prevent the display from going to sleep. Keeps
26+
* `prevent-display-sleep` - Prevent the display from going to sleep. Keeps
2727
system and screen active. Example use case: playing video.
2828

2929
Starts preventing the system from entering lower-power mode. Returns an integer

docs/api/session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ console.log(ses.getUserAgent())
2121

2222
The `session` module has the following methods:
2323

24-
### session.fromPartition(partition[, options])
24+
### `session.fromPartition(partition[, options])`
2525

2626
* `partition` String
2727
* `options` Object
@@ -44,7 +44,7 @@ of an existing `Session` object.
4444

4545
The `session` module has the following properties:
4646

47-
### session.defaultSession
47+
### `session.defaultSession`
4848

4949
Returns the default session object of the app.
5050

docs/api/system-preferences.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ Removes the subscriber with `id`.
6363
### `systemPreferences.subscribeLocalNotification(event, callback)` _macOS_
6464

6565
Same as `subscribeNotification`, but uses `NSNotificationCenter` for local defaults.
66-
This is necessary for events such as:
67-
68-
* `NSUserDefaultsDidChangeNotification`
66+
This is necessary for events such as `NSUserDefaultsDidChangeNotification`
6967

7068
### `systemPreferences.unsubscribeLocalNotification(id)` _macOS_
7169

docs/api/web-contents.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,6 @@ Opens the developer tools for the service worker context.
933933
#### `contents.send(channel[, arg1][, arg2][, ...])`
934934

935935
* `channel` String
936-
* `arg` (optional)
937936

938937
Send an asynchronous message to renderer process via `channel`, you can also
939938
send arbitrary arguments. Arguments will be serialized in JSON internally and
@@ -977,8 +976,8 @@ app.on('ready', () => {
977976

978977
* `screenPosition` String - Specify the screen type to emulate
979978
(default: `desktop`)
980-
* `desktop`
981-
* `mobile`
979+
* `desktop` - Desktop screen type
980+
* `mobile` - Mobile screen type
982981
* `screenSize` Object - Set the emulated screen size (screenPosition == mobile)
983982
* `width` Integer - Set the emulated screen width
984983
* `height` Integer - Set the emulated screen height

0 commit comments

Comments
 (0)