react-google-invisible-recaptcha
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -69,3 +69,4 @@ 'use strict'; | ||
badge = _props.badge, | ||
onResolved = _props.onResolved; | ||
onResolved = _props.onResolved, | ||
onLoaded = _props.onLoaded; | ||
@@ -93,2 +94,3 @@ | ||
}; | ||
onLoaded(); | ||
} | ||
@@ -102,3 +104,3 @@ }; | ||
if (!document.querySelector('#recaptcha')) { | ||
injectScript(locale, loaded); | ||
injectScript(locale); | ||
} | ||
@@ -134,2 +136,3 @@ } | ||
onResolved: _propTypes2.default.func.isRequired, | ||
onLoaded: _propTypes2.default.func, | ||
style: _propTypes2.default.object | ||
@@ -140,5 +143,6 @@ }; | ||
locale: 'en', | ||
badge: 'bottomright' | ||
badge: 'bottomright', | ||
onLoaded: function onLoaded() {} | ||
}; | ||
exports.default = GoogleRecaptcha; |
{ | ||
"name": "react-google-invisible-recaptcha", | ||
"author": "szchenghuang <szchenghuang@gmail.com>", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "A React component which is simply interested in Google invisible reCaptcha.", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -84,2 +84,3 @@ # react-google-invisible-recaptcha # | ||
* style: custom CSS applied to the root node. **Default: undefined.** | ||
* onLoaded: callback when the recaptcha is loaded. **Default: noop.** | ||
@@ -86,0 +87,0 @@ ## APIs ## |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11549
115
101