Fix bug where QR would refuse to post due to no captchas although captchas had been cached in another tab.

This commit is contained in:
ccd0 2017-02-05 21:43:06 -08:00
parent a951e17289
commit 792267954d
2 changed files with 2 additions and 2 deletions

View File

@ -177,8 +177,8 @@ Captcha.v1 =
$.set 'captchas', @captchas
clear: ->
return unless @captchas.length
$.forceSync 'captchas'
return unless @captchas.length
now = Date.now()
for captcha, i in @captchas
break if captcha.timeout > now

View File

@ -206,8 +206,8 @@ Captcha.v2 =
QR.submit() if Conf['Post on Captcha Completion'] and !QR.cooldown.auto
clear: ->
return unless @captchas.length
$.forceSync 'captchas'
return unless @captchas.length
now = Date.now()
for captcha, i in @captchas
break if captcha.timeout > now