Skip to content

Commit 9746de3

Browse files
committed
AC-2642: ReCaptcha validation changes
1 parent 5a561d9 commit 9746de3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ReCaptchaWebapiUi/view/frontend/web/js/webapiReCaptchaRegistry.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ define([], function () {
3232
* @param {Function} func - Will be called back with the token
3333
*/
3434
addListener: function (id, func) {
35-
if (this.tokens.hasOwnProperty(id)) {
36-
func(this.tokens[id]);
37-
} else {
38-
this._listeners[id] = func;
39-
}
35+
this._listeners[id] = func;
4036
}
4137
};
4238
});

0 commit comments

Comments
 (0)