From 0c3cfc50a777e5084defada5fce0bff0a02e3f7d Mon Sep 17 00:00:00 2001 From: "trop[bot]" Date: Thu, 20 Sep 2018 21:28:45 -0700 Subject: [PATCH] Fix second-instance handler signature (#14748) --- docs/api/app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/app.md b/docs/api/app.md index 740da22d82ee..52b0cb2d8d42 100644 --- a/docs/api/app.md +++ b/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()