From a8b07392808032f95ac3a7c5856e76d2619c91ae Mon Sep 17 00:00:00 2001 From: Lorenzo Rizzotti Date: Mon, 1 May 2023 16:39:03 +0200 Subject: [PATCH] Fixed customFlags (#142) --- src/cmdSwitches.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmdSwitches.js b/src/cmdSwitches.js index d7a4394..4091a8e 100644 --- a/src/cmdSwitches.js +++ b/src/cmdSwitches.js @@ -9,7 +9,7 @@ const presets = { module.exports = () => { let c = {}; - for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' '))).concat((oaConfig.customFlags ?? '').split(' '))) { + for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' ')), (oaConfig.customFlags ?? '').split(' '))) { if (!x) continue; const [ k, v ] = x.split('='); @@ -19,4 +19,4 @@ module.exports = () => { for (const k in c) { app.commandLine.appendSwitch(k.replace('--', ''), c[k].join(',')); } -}; \ No newline at end of file +};