Skip to content

Commit

Permalink
fix map
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Mar 30, 2024
1 parent 84d9c83 commit c810393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/real-device-management.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function applySafariStartupArgs() {
}

const args = _.toPairs(prefs)
.map(([key, value]) => [_.startsWith(key, '-') ? key : `-${key}`, String(value)]);
.flatMap(([key, value]) => [_.startsWith(key, '-') ? key : `-${key}`, String(value)]);
this.log.debug(`Generated Safari command line arguments: ${args.join(' ')}`);
if (_.isPlainObject(this.opts.processArguments)) {
this.opts.processArguments.args = [...(this.opts.processArguments.args ?? []), ...args];
Expand Down

0 comments on commit c810393

Please sign in to comment.