This repository has been archived by the owner on Aug 17, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for grecaptcha.render function availability
Instead of checking for the variable `grecaptcha` to be defined, now we check for the `grecaptcha.render` function to be defined and to be a function. It has happened in Firefox(due to browser cache), that sometimes the `grecaptcha` variable is already defined, but as empty object, causing the library to fail due to the lack of the render function.
- Loading branch information
Ismael Ambrosi
committed
May 3, 2018
1 parent
eca1c7f
commit 7d98663
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters