Don't reload expired captchas in background tabs. #330
This commit is contained in:
parent
43e011d467
commit
d08c642ff5
@ -217,7 +217,7 @@ Captcha.noscript =
|
|||||||
|
|
||||||
expire: ->
|
expire: ->
|
||||||
return unless @nodes.iframe
|
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()
|
@reload()
|
||||||
else
|
else
|
||||||
@destroy()
|
@destroy()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user