From da001940e2dc7db7ef697e8dabb976075c2690f6 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 26 Jun 2017 08:53:29 -0700 Subject: [PATCH] isNotFirstInstance -> isSecondInstance --- docs/api/app.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/app.md b/docs/api/app.md index c2090a68e662..395bb3f36d20 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -701,7 +701,7 @@ starts: const {app} = require('electron') let myWindow = null -const isNotFirstInstance = app.makeSingleInstance((commandLine, workingDirectory) => { +const isSecondInstance = app.makeSingleInstance((commandLine, workingDirectory) => { // Someone tried to run a second instance, we should focus our window. if (myWindow) { if (myWindow.isMinimized()) myWindow.restore() @@ -709,8 +709,8 @@ const isNotFirstInstance = app.makeSingleInstance((commandLine, workingDirectory } }) -if (isNotFirstInstance) { - app.quit(); +if (isSecondInstance) { + app.quit() } // Create myWindow, load the rest of the app, etc...