Merge pull request #7188 from electron/app-is-ready-public

Mark app.isReady() as public
This commit is contained in:
Cheng Zhao 2016-09-14 14:30:46 +09:00 committed by GitHub
commit 23ae57fe79

View file

@ -32,9 +32,10 @@ Returns:
* `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,
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'
@ -349,6 +350,10 @@ app.relaunch({args: process.argv.slice(1) + ['--relaunch']})
app.exit(0)
```
### `app.isReady()`
Returns `true` if Electron has finished initializing, `false` otherwise.
### `app.focus()`
On Linux, focuses on the first visible window. On macOS, makes the application