Skip to content

Commit

Permalink
fix: put target/url as last argument on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jan 5, 2024
1 parent 31da4c3 commit 549c40d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ const baseOpen = async options => {
}
}

if (options.target) {
cliArguments.push(options.target);
}

if (platform === 'darwin' && appArguments.length > 0) {
cliArguments.push('--args', ...appArguments);
}

if (options.target) {
cliArguments.push(options.target);
}

const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);

if (options.wait) {
Expand Down

0 comments on commit 549c40d

Please sign in to comment.