We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4bb6d93 + 861b7a3 commit 87550b6Copy full SHA for 87550b6
src/ReCaptcha.js
@@ -32,7 +32,7 @@ class ReCaptcha extends Component {
32
theme: PropTypes.oneOf(["dark", "light"])
33
};
34
isReady = () =>
35
- typeof window !== "undefined" && typeof window.grecaptcha !== "undefined";
+ typeof window !== "undefined" && typeof window.grecaptcha !== "undefined" && typeof window.grecaptcha.render === 'function';
36
37
readyIntervalId = setInterval(() => this._updateReadyState(), 1000);
38
recaptcha = createRef();
0 commit comments