Mark app.isReady() as public

This commit is contained in:
Kevin Sawicki 2016-09-13 09:35:39 -07:00
parent b13bab6fae
commit f373f2ae15

View file

@ -34,7 +34,8 @@ Returns:
Emitted when Electron has finished initialization. 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 initialization, `false` otherwise.
### `app.focus()`
On Linux, focuses on the first visible window. On macOS, makes the application