0
다른 콜백과 함께 사용하기 위해 firebase -> recaptcha (allready로드 및 초기화)를 다시 초기화하는 방법은 무엇입니까? 나는이firebase는 다른 콜백과 함께 사용하도록 recaptcha를 다시 초기화하십시오.
my_recaptcha(function(){
console.log('SUCCES 1')
},function(){
console.log('EXPIRED 1')
})
my_recaptcha(function(){
console.log('SUCCES 2')
},function(){
console.log('EXPIRED 2')
})
과 같은 몇 가지를하려고하면 나는이 오류가있어
function my_recaptcha(my_success_callback,my_expired_callback){
window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier('id_container_recaptcha', {
'size': 'invisible',
'callback': function(response) {
// reCAPTCHA solved, allow user to do action.
// ...
my_success_callback.call(this,arguments);
},
'expired-callback': function() {
// Response expired. Ask user to solve reCAPTCHA again.
// ...
my_expired_callback.call(this,arguments);
}
});
}
:
Uncaught Error: ReCAPTCHA has already been rendered in this element
을 나는에 reCAPTCHA를 다시 인스턴스화하는 grecaptcha.reset(window.recaptchaWidgetId);