-
Notifications
You must be signed in to change notification settings - Fork 256
Added support for the new Invisible reCaptcha badge attribute and execute() API method. #188
Conversation
src/directive.js
Outdated
lang: scope.lang || attrs.lang || null, | ||
tabindex: scope.tabindex || attrs.tabindex || null, | ||
size: scope.size || attrs.size || null, | ||
badge: scope.badge || attrs.badge || null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad indent.
Thank you for your contribution! Is anyone else interested in this PR to be merged? If yes, then I'd appreciate someone to test this, confirm that it works, and code review. |
@mtrias it looks good to me and I've been able to use the invisible recaptcha (not used in production). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR and my apologies about the long waiting for review. We will merge this as soon as these changes are applied.
provider.setLang = function(lang){ | ||
config.lang = lang; | ||
}; | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: Can you add an empty line between provider methods?
src/service.js
Outdated
config.lang = lang; | ||
}; | ||
/** | ||
* Sets the reCaptcha badge position which will be used by default is not specified in a specific directive instance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick 2:
-...by default is not specified...
+...by default if not specified...
src/service.js
Outdated
/** | ||
* Sets the reCaptcha badge position which will be used by default is not specified in a specific directive instance. | ||
* | ||
* @param lang The reCaptcha badge position. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter name is wrong.
Thanks @bjornlaurell !! |
Tagged as 4.1.0 |
This should fix the following issue: #186