Skip to content

Commit 25edf56

Browse files
committed
Merge branch 'AC-2642' of github.com:magento-cia/security-package into cia-develop-bugfixes-08012022
2 parents 2dd2166 + d8673bc commit 25edf56

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

ReCaptchaCheckout/view/frontend/requirejs-config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ var config = {
99
mixins: {
1010
'Magento_Checkout/js/model/place-order': {
1111
'Magento_ReCaptchaCheckout/js/model/place-order-mixin': true
12+
},
13+
'Magento_ReCaptchaWebapiUi/js/webapiReCaptchaRegistry': {
14+
'Magento_ReCaptchaCheckout/js/webapiReCaptchaRegistry-mixin': true
1215
}
1316
}
1417
}
1518
};
19+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* Copyright © Magento, Inc. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
6+
define([], function () {
7+
'use strict';
8+
9+
return function (originalFunction) {
10+
/**
11+
* {@inheritDoc}
12+
*/
13+
originalFunction.addListener = function (id , func) {
14+
this._listeners[id] = func;
15+
};
16+
17+
return originalFunction;
18+
};
19+
20+
});

0 commit comments

Comments
 (0)