From 66b619c3980ec11dff1034723a8bbdc7766efdb2 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 11 May 2025 21:04:26 +1200 Subject: [PATCH] single line --- electron/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electron/main.js b/electron/main.js index edd8bc2..604748f 100644 --- a/electron/main.js +++ b/electron/main.js @@ -100,8 +100,7 @@ app.whenReady().then(async () => { // get arguments passed to application, and remove the provided application path const ignoredArguments = ["--no-sandbox"]; - const userProvidedArguments = process.argv.slice(1) - .filter(arg => !ignoredArguments.includes(arg)); + const userProvidedArguments = process.argv.slice(1).filter((arg) => !ignoredArguments.includes(arg)); const shouldLaunchHeadless = userProvidedArguments.includes("--headless"); if(!shouldLaunchHeadless){