Skip to content

Commit

Permalink
Fix second-instance handler signature (#14748)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and codebytere committed Sep 21, 2018
1 parent 8d87dff commit 0c3cfc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/app.md
Expand Up @@ -806,7 +806,7 @@ const gotTheLock = app.requestSingleInstanceLock()
if (!gotTheLock) {
app.quit()
} else {
app.on('second-instance', (commandLine, workingDirectory) => {
app.on('second-instance', (event, commandLine, workingDirectory) => {
// Someone tried to run a second instance, we should focus our window.
if (myWindow) {
if (myWindow.isMinimized()) myWindow.restore()
Expand Down

0 comments on commit 0c3cfc5

Please sign in to comment.