Skip to content

Commit 95f6207

Browse files
committed
AC-2642: ReCaptcha validation changes
* Fixing testcases
1 parent 95fffe6 commit 95f6207

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

ReCaptchaCheckout/view/frontend/web/js/webapiReCaptchaRegistry-mixin.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@
66
define([], function () {
77
'use strict';
88

9-
return function(originalFunction){
9+
return function (originalFunction) {
1010
/**
11-
* Add a listener to when the ReCaptcha finishes verification
12-
* @param {String} id - ReCaptchaId
13-
* @param {Function} func - Will be called back with the token
11+
* {@inheritDoc}
1412
*/
15-
originalFunction.addListener = function(id , func) {
13+
originalFunction.addListener = function (id , func) {
1614
this._listeners[id] = func;
1715
}
1816

1917
return originalFunction;
20-
};
18+
}
2119

22-
});
20+
});

0 commit comments

Comments
 (0)