File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
app/code/Magento/Paypal/view/frontend/web/js/in-context Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ define([
12
12
/**
13
13
* Loads the PayPal SDK object
14
14
* @param {String } paypalUrl - the url of the PayPal SDK
15
+ * @param {Array } dataAttributes - Array of the Attributes for PayPal SDK Script tag
15
16
*/
16
- return function loadPaypalScript ( paypalUrl , dataAttributes )
17
- {
17
+ return function loadPaypalScript ( paypalUrl , dataAttributes ) {
18
18
//configuration for loaded PayPal script
19
19
require . config ( {
20
20
paths : {
@@ -25,7 +25,10 @@ define([
25
25
exports : 'paypal'
26
26
}
27
27
} ,
28
- onNodeCreated : function ( node , config , name ) {
28
+ /**
29
+ * Add attributes under Paypal SDK Script tag
30
+ */
31
+ onNodeCreated : function ( node ) {
29
32
$ . each ( dataAttributes , function ( index , elem ) {
30
33
node . setAttribute ( index , elem ) ;
31
34
} ) ;
You can’t perform that action at this time.
0 commit comments