react-google-recaptcha-enterprise
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -110,5 +110,5 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
_proto.explicitRender = function explicitRender() { | ||
if (this.props.grecaptcha && this.props.grecaptcha.render && this._widgetId === undefined) { | ||
if (this.props.grecaptcha && this.props.grecaptcha.enterprise && this.props.grecaptcha.enterprise.render && this._widgetId === undefined) { | ||
var wrapper = document.createElement("div"); | ||
this._widgetId = this.props.grecaptcha.render(wrapper, { | ||
this._widgetId = this.props.grecaptcha.enterprise.render(wrapper, { | ||
sitekey: this.props.sitekey, | ||
@@ -115,0 +115,0 @@ callback: this.handleChange, |
@@ -122,5 +122,5 @@ "use strict"; | ||
_proto.explicitRender = function explicitRender() { | ||
if (this.props.grecaptcha && this.props.grecaptcha.render && this._widgetId === undefined) { | ||
if (this.props.grecaptcha && this.props.grecaptcha.enterprise && this.props.grecaptcha.enterprise.render && this._widgetId === undefined) { | ||
var wrapper = document.createElement("div"); | ||
this._widgetId = this.props.grecaptcha.render(wrapper, { | ||
this._widgetId = this.props.grecaptcha.enterprise.render(wrapper, { | ||
sitekey: this.props.sitekey, | ||
@@ -127,0 +127,0 @@ callback: this.handleChange, |
{ | ||
"name": "react-google-recaptcha-enterprise", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "React Component Wrapper for Google Enterprise reCAPTCHA", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -88,5 +88,5 @@ import * as React from "react"; | ||
explicitRender() { | ||
if (this.props.grecaptcha && this.props.grecaptcha.render && this._widgetId === undefined) { | ||
if (this.props.grecaptcha && this.props.grecaptcha.enterprise && this.props.grecaptcha.enterprise.render && this._widgetId === undefined) { | ||
const wrapper = document.createElement("div"); | ||
this._widgetId = this.props.grecaptcha.render(wrapper, { | ||
this._widgetId = this.props.grecaptcha.enterprise.render(wrapper, { | ||
sitekey: this.props.sitekey, | ||
@@ -93,0 +93,0 @@ callback: this.handleChange, |
39713