Skip to content

Commit 17fd591

Browse files
committed
AC-1228::Fixed Automation Failed Static Tests
1 parent d014a67 commit 17fd591

File tree

1 file changed

+6
-3
lines changed
  • app/code/Magento/Paypal/view/frontend/web/js/in-context

1 file changed

+6
-3
lines changed

app/code/Magento/Paypal/view/frontend/web/js/in-context/paypal-sdk.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ define([
1212
/**
1313
* Loads the PayPal SDK object
1414
* @param {String} paypalUrl - the url of the PayPal SDK
15+
* @param {Array} dataAttributes - Array of the Attributes for PayPal SDK Script tag
1516
*/
16-
return function loadPaypalScript(paypalUrl, dataAttributes)
17-
{
17+
return function loadPaypalScript(paypalUrl, dataAttributes) {
1818
//configuration for loaded PayPal script
1919
require.config({
2020
paths: {
@@ -25,7 +25,10 @@ define([
2525
exports: 'paypal'
2626
}
2727
},
28-
onNodeCreated: function (node, config, name) {
28+
/**
29+
* Add attributes under Paypal SDK Script tag
30+
*/
31+
onNodeCreated: function (node) {
2932
$.each(dataAttributes, function (index, elem) {
3033
node.setAttribute(index, elem);
3134
});

0 commit comments

Comments
 (0)