Fixed customFlags (#142)

pull/149/head
Lorenzo Rizzotti 1 year ago committed by GitHub
parent 99cd4f53bf
commit a8b0739280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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(','));
}
};
};

Loading…
Cancel
Save