Skip to content

Commit

Permalink
docs: clarify that 'second-instance' is only emitted when the second …
Browse files Browse the repository at this point in the history
…instance calls `app.requestSingleInstanceLock()` (#18384)
  • Loading branch information
trop[bot] authored and codebytere committed May 28, 2019
1 parent 49d6f5c commit d6ad3e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/api/app.md
Expand Up @@ -390,8 +390,10 @@ Returns:
* `workingDirectory` String - The second instance's working directory

This event will be emitted inside the primary instance of your application
when a second instance has been executed. `argv` is an Array of the second instance's
command line arguments, and `workingDirectory` is its current working directory. Usually
when a second instance has been executed and calls `app.requestSingleInstanceLock()`.

`argv` is an Array of the second instance's command line arguments,
and `workingDirectory` is its current working directory. Usually
applications respond to this by making their primary window focused and
non-minimized.

Expand Down

0 comments on commit d6ad3e6

Please sign in to comment.