Might as well fix this $.globalEval too.
This commit is contained in:
parent
04dd179019
commit
d61dd5276f
@ -222,9 +222,6 @@ Captcha.v2 =
|
||||
@destroy()
|
||||
@setup false, true
|
||||
else
|
||||
$.globalEval '''
|
||||
(function() {
|
||||
var container = document.querySelector("#qr .captcha-container");
|
||||
window.grecaptcha.reset(container.dataset.widgetID);
|
||||
})();
|
||||
'''
|
||||
$.global ->
|
||||
container = document.querySelector '#qr .captcha-container'
|
||||
window.grecaptcha.reset container.dataset.widgetID
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user