Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
codemanki committed Dec 3, 2019
1 parent 2dac529 commit 4327637
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ Current Cloudflare implementation requires browser to respect the timeout of 5 s

## Kudos to contributors
- [Dwayne](https://github.com/pro-src)
- [drdokk](https://github.com/drdokk)
- [Cole Faust](https://github.com/Colecf)
- [Jeongbong Seo](https://github.com/jngbng)
- [Mike van Rossum](https://github.com/askmike)
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function detectRecaptchaVersion (body) {
function validateResponse (options, response, body) {
// Finding captcha
// Old version < Dec 2019
let recaptchaVer = detectRecaptchaVersion(body);
const recaptchaVer = detectRecaptchaVersion(body);
if (recaptchaVer) {
// Convenience boolean
response.isCaptcha = true;
Expand Down Expand Up @@ -397,8 +397,8 @@ function onChallenge (options, response, body) {

// Parses the reCAPTCHA form and hands control over to the user
function onCaptcha (options, response, body) {
let recaptchaVer = detectRecaptchaVersion(body);
let isRecaptchaVer2 = recaptchaVer === 'ver2';
const recaptchaVer = detectRecaptchaVersion(body);
const isRecaptchaVer2 = recaptchaVer === 'ver2';
const callback = options.callback;
// UDF that has the responsibility of returning control back to cloudscraper
const handler = options.onCaptcha;
Expand Down

0 comments on commit 4327637

Please sign in to comment.