Don't reload expired captchas in background tabs. #330

This commit is contained in:
ccd0 2015-02-20 17:32:06 -08:00
parent 43e011d467
commit d08c642ff5

View File

@ -217,7 +217,7 @@ Captcha.noscript =
expire: ->
return unless @nodes.iframe
if @needed() or d.activeElement is @nodes.input
if not d.hidden and (@needed() or d.activeElement is @nodes.input)
@reload()
else
@destroy()