Skip to content

Commit

Permalink
fixin ?? syntax with ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
ChetanPatel authored and freekmurze committed Nov 28, 2023
1 parent 9e4c541 commit 8779b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/browser.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ const callChrome = async pup => {
}

if (request.options.waitForSelector) {
await page.waitForSelector(request.options.waitForSelector, request.options.waitForSelectorOptions ?? undefined);
await page.waitForSelector(request.options.waitForSelector, (request.options.waitForSelectorOptions ? request.options.waitForSelectorOptions : undefined));
}

console.log(await getOutput(request, page));
Expand Down

0 comments on commit 8779b2c

Please sign in to comment.