diff --git a/4chan_x.user.js b/4chan_x.user.js index b8abeda96..d547d9d5f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1492,7 +1492,7 @@ } qr = QR.qr; $('.error', qr).textContent = ''; - if ((el = $('#recaptcha_response_field', qr)).value) { + if (e && (el = $('#recaptcha_response_field', qr)).value) { QR.captchaPush(el); } if (!(captcha = QR.captchaShift())) { diff --git a/script.coffee b/script.coffee index 1ba2f3ee7..9d0ec1563 100644 --- a/script.coffee +++ b/script.coffee @@ -1166,7 +1166,7 @@ QR = return {qr} = QR $('.error', qr).textContent = '' - if (el = $('#recaptcha_response_field', qr)).value + if e and (el = $('#recaptcha_response_field', qr)).value QR.captchaPush el if not captcha = QR.captchaShift() alert 'You forgot to type in the verification.'