Skip to content

Commit

Permalink
fix: urls are opened twice (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh authored Nov 5, 2021
1 parent d82a523 commit 8b31033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ const startBrowserProcess = (browser, url, opts = {}, args = []) => {
// on OSX Chromium-based browser with AppleScript
execSync('ps cax | grep "' + chromiumBrowser + '"');
execSync(
`osascript ../openChrome.applescript "${encodeURI(url)}" ${
`osascript ../openChrome.applescript "${encodeURI(url)}" "${
process.env.OPEN_MATCH_HOST_ONLY === 'true'
? encodeURI(normalizeURLToMatch(url))
: encodeURI(url)
} "${chromiumBrowser}"`,
}" "${chromiumBrowser}"`,
{
cwd: __dirname,
stdio: 'ignore',
Expand Down

0 comments on commit 8b31033

Please sign in to comment.