Skip to content

Commit

Permalink
Refactored null coalescent
Browse files Browse the repository at this point in the history
Refactored the null coalescent operator with a ternary if operator. This restores functionality in node < 14 versions.
  • Loading branch information
erikverbeek authored Nov 16, 2023
1 parent 9e4c541 commit 504a738
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 504a738

Please sign in to comment.