I have trouble calling the callback function manually by myself because of the this
in it. I'm not really good at JS and that is the only thing I have to do in JS. Is there an easy way to call that function?
}), i.createElement("div", {
id: "recaptcha-element-container",
className: t
}))
}, t.prototype.reset = function() {
null !== this.state.widgetId && window.grecaptcha && window.grecaptcha.reset(this.state.widgetId)
}, t.prototype.execute = function() {
null !== this.state.widgetId && window.grecaptcha && this.props.invisible && window.grecaptcha.execute(this.state.widgetId)
}, t.prototype.initRecaptcha = function() {
if (window.grecaptcha) {
var e = window.grecaptcha.render("recaptcha-element-container", {
sitekey: this.props.invisible ? c.p.config.invisibleCaptchaKey : c.p.config.captchaKey,
callback: this.onChange,
theme: "light",
type: "image",
size: this.props.invisible ? "invisible" : "normal",
tabindex: 0,
hl: this.props.languageCode,
badge: "bottomright",
"expired-callback": this.onExpired
});
this.setState({
widgetId: e
})
}
}, t