Merge pull request #7188 from electron/app-is-ready-public
Mark app.isReady() as public
This commit is contained in:
commit
23ae57fe79
1 changed files with 9 additions and 4 deletions
|
@ -32,9 +32,10 @@ Returns:
|
||||||
|
|
||||||
* `launchInfo` Object _macOS_
|
* `launchInfo` Object _macOS_
|
||||||
|
|
||||||
Emitted when Electron has finished initialization. On macOS, `launchInfo` holds
|
Emitted when Electron has finished initializing. On macOS, `launchInfo` holds
|
||||||
the `userInfo` of the `NSUserNotification` that was used to open the application,
|
the `userInfo` of the `NSUserNotification` that was used to open the application,
|
||||||
if it was launched from Notification Center.
|
if it was launched from Notification Center. You can call `app.isReady()` to
|
||||||
|
check if this event has already fired.
|
||||||
|
|
||||||
### Event: 'window-all-closed'
|
### Event: 'window-all-closed'
|
||||||
|
|
||||||
|
@ -349,6 +350,10 @@ app.relaunch({args: process.argv.slice(1) + ['--relaunch']})
|
||||||
app.exit(0)
|
app.exit(0)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### `app.isReady()`
|
||||||
|
|
||||||
|
Returns `true` if Electron has finished initializing, `false` otherwise.
|
||||||
|
|
||||||
### `app.focus()`
|
### `app.focus()`
|
||||||
|
|
||||||
On Linux, focuses on the first visible window. On macOS, makes the application
|
On Linux, focuses on the first visible window. On macOS, makes the application
|
||||||
|
|
Loading…
Reference in a new issue