react-google-invisible-recaptcha
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -76,17 +76,19 @@ 'use strict'; | ||
var loaded = function loaded() { | ||
var recaptchaId = window.grecaptcha.render(_this2.container, { | ||
sitekey: sitekey, | ||
size: 'invisible', | ||
badge: badge, | ||
callback: _this2.callbackName | ||
}); | ||
_this2.execute = function () { | ||
return window.grecaptcha.execute(recaptchaId); | ||
}; | ||
_this2.reset = function () { | ||
return window.grecaptcha.reset(recaptchaId); | ||
}; | ||
_this2.getResponse = function () { | ||
return window.grecaptcha.getResponse(recaptchaId); | ||
}; | ||
if (_this2.container) { | ||
var recaptchaId = window.grecaptcha.render(_this2.container, { | ||
sitekey: sitekey, | ||
size: 'invisible', | ||
badge: badge, | ||
callback: _this2.callbackName | ||
}); | ||
_this2.execute = function () { | ||
return window.grecaptcha.execute(recaptchaId); | ||
}; | ||
_this2.reset = function () { | ||
return window.grecaptcha.reset(recaptchaId); | ||
}; | ||
_this2.getResponse = function () { | ||
return window.grecaptcha.getResponse(recaptchaId); | ||
}; | ||
} | ||
}; | ||
@@ -107,2 +109,3 @@ | ||
delete window[this.callbackName]; | ||
delete this.container; | ||
} | ||
@@ -109,0 +112,0 @@ }, { |
{ | ||
"name": "react-google-invisible-recaptcha", | ||
"author": "szchenghuang <szchenghuang@gmail.com>", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A React component which is simply interested in Google invisible reCaptcha.", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
11050
107
7