diff --git a/src/Posting/Captcha.cache.coffee b/src/Posting/Captcha.cache.coffee index 8d245e8f5..e51fc2f75 100644 --- a/src/Posting/Captcha.cache.coffee +++ b/src/Posting/Captcha.cache.coffee @@ -22,11 +22,9 @@ Captcha.cache = haveCookie: -> /\b_ct=/.test(d.cookie) and QR.posts[0].thread isnt 'new' - getOne: (isReply) -> + getOne: -> @clear() - i = @captchas.findIndex((x) -> isReply or !x.challenge?) - if i >= 0 - captcha = @captchas.splice(i, 1)[0] + if (captcha = @captchas.shift()) @count() captcha else