Skip to content

Commit

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

const args = _.toPairs(_.mapKeys(prefs, (value, key) => _.startsWith(key, '-') ? key : `-${key}`));
const args = _.toPairs(prefs)
.map(([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 84d9c83

Please sign in to comment.