Fix reloading for new way of doing noscript captcha.
Was broken from 210b6bd20161286ace683ad1590a8df637f60de7.
This commit is contained in:
parent
2d2081c287
commit
2d390d0a0f
@ -218,9 +218,7 @@ Captcha.v2 =
|
|||||||
@timeouts.clear = setTimeout @clear.bind(@), @captchas[0].timeout - Date.now()
|
@timeouts.clear = setTimeout @clear.bind(@), @captchas[0].timeout - Date.now()
|
||||||
|
|
||||||
reload: ->
|
reload: ->
|
||||||
if @noscript
|
if $ 'iframe[src^="https://www.google.com/recaptcha/api/fallback?"]', @nodes.container
|
||||||
$('iframe', @nodes.container).src = @noscriptURL()
|
|
||||||
else if $ 'iframe[src^="https://www.google.com/recaptcha/api/fallback?"]', @nodes.container
|
|
||||||
@destroy()
|
@destroy()
|
||||||
@setup false, true
|
@setup false, true
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user