From 1531bc6419531ebf2f300607c195aab749c6839a Mon Sep 17 00:00:00 2001 From: Jean Ouina Date: Mon, 10 Aug 2020 12:29:33 +0200 Subject: [PATCH] small patch for Lightcord that focus over apps --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 8bb8f4e..803bfc5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -111,7 +111,7 @@ commit: ${buildInfo.commit}`); if (!allowMultipleInstances) { electron.app.on("second-instance", (_event, args, _workingDirectory) => { - if(args && args[0] === "--overlay-host"){ + if(args && args[1] === "--overlay-host"){ // this is a patch for Lightcord that focus itself when the user is playing a game. //console.warn("OVERLAY HOST DÉTECTÉ. EVENNEMENT IGNORÉ MAIS POURRAIT CAUSER UN PROBLÈME.") return;