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:
parent
a951e17289
commit
792267954d
@ -177,8 +177,8 @@ Captcha.v1 =
|
|||||||
$.set 'captchas', @captchas
|
$.set 'captchas', @captchas
|
||||||
|
|
||||||
clear: ->
|
clear: ->
|
||||||
return unless @captchas.length
|
|
||||||
$.forceSync 'captchas'
|
$.forceSync 'captchas'
|
||||||
|
return unless @captchas.length
|
||||||
now = Date.now()
|
now = Date.now()
|
||||||
for captcha, i in @captchas
|
for captcha, i in @captchas
|
||||||
break if captcha.timeout > now
|
break if captcha.timeout > now
|
||||||
|
|||||||
@ -206,8 +206,8 @@ Captcha.v2 =
|
|||||||
QR.submit() if Conf['Post on Captcha Completion'] and !QR.cooldown.auto
|
QR.submit() if Conf['Post on Captcha Completion'] and !QR.cooldown.auto
|
||||||
|
|
||||||
clear: ->
|
clear: ->
|
||||||
return unless @captchas.length
|
|
||||||
$.forceSync 'captchas'
|
$.forceSync 'captchas'
|
||||||
|
return unless @captchas.length
|
||||||
now = Date.now()
|
now = Date.now()
|
||||||
for captcha, i in @captchas
|
for captcha, i in @captchas
|
||||||
break if captcha.timeout > now
|
break if captcha.timeout > now
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user