Browse Source

Fix second-instance handler signature (#14731)

Sylvester Keil 6 years ago
parent
commit
a24307b8e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/api/app.md

+ 1 - 1
docs/api/app.md

@@ -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()