From a24307b8e880c29501c3de7dc44a7330b277dab7 Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Fri, 21 Sep 2018 05:02:28 +0200 Subject: [PATCH] Fix second-instance handler signature (#14731) --- 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 5aab57b277..5be56fb8b1 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()