small patch for Lightcord that focus over apps

This commit is contained in:
Jean Ouina 2020-08-10 12:29:33 +02:00
parent 882e92a6e0
commit 1531bc6419
1 changed files with 1 additions and 1 deletions

View File

@ -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;