Skip to content

Commit

Permalink
Added closing page on request of empty captcha (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewZMSU authored Aug 9, 2023
1 parent cbeae74 commit 9faaf63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routes/recaptcha_solver.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ async function action(page, request) {
}

const waitOptions = request.body.waitOptions || { timeout: DEFAULT_TIMEOUT };
const close_page = request.query.closePage ||
(request.body.close_on_empty && recaptcha_data['captchas'].length === 0)
return {
...await utils.formResponse(page, request.query.closePage, waitOptions),
...await utils.formResponse(page, close_page, waitOptions),
recaptcha_data: recaptcha_data,
}
}
Expand Down

0 comments on commit 9faaf63

Please sign in to comment.