Fix regression: don't stop auto-posting because of a captcha error.
This commit is contained in:
parent
ad95f332c2
commit
9805572fe0
@ -2485,7 +2485,7 @@
|
||||
err = 'Connection error with sys.4chan.org.';
|
||||
}
|
||||
if (err) {
|
||||
if (/captcha|verification/i.test(err) || err === 'Connection error with sys.4chan.org.') {
|
||||
if (/captcha|verification/i.test(err.textContent) || err === 'Connection error with sys.4chan.org.') {
|
||||
QR.cooldown.auto = !!$.get('captchas', []).length;
|
||||
QR.cooldown.set(2);
|
||||
} else {
|
||||
|
||||
@ -1940,7 +1940,7 @@ QR =
|
||||
err = 'Connection error with sys.4chan.org.'
|
||||
|
||||
if err
|
||||
if /captcha|verification/i.test(err) or err is 'Connection error with sys.4chan.org.'
|
||||
if /captcha|verification/i.test(err.textContent) or err is 'Connection error with sys.4chan.org.'
|
||||
# Enable auto-post if we have some cached captchas.
|
||||
QR.cooldown.auto = !!$.get('captchas', []).length
|
||||
# Too many frequent mistyped captchas will auto-ban you!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user