File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
app/code/Meta/Conversion/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change
1
+ /* global fbq */
1
2
define ( [
2
3
'jquery'
3
4
] , function ( $ ) {
4
5
'use strict' ;
5
6
6
7
return function ( config ) {
7
-
8
- var browserEventData = config . browserEventData ;
9
- var eventId = crypto . randomUUID ( ) ;
8
+ var browserEventData = config . browserEventData ,
9
+ eventId = crypto . randomUUID ( ) ;
10
10
11
11
config . payload . eventId = eventId ;
12
12
13
- let browserPayload = config . browserEventData . payload
13
+ let browserPayload = config . browserEventData . payload ;
14
+
14
15
browserPayload . source = browserEventData . source ;
15
16
16
17
browserPayload . pluginVersion = browserEventData . pluginVersion ;
@@ -24,12 +25,12 @@ define([
24
25
$ . ajax ( {
25
26
showLoader : true ,
26
27
url : config . url ,
27
- type : " POST" ,
28
+ type : ' POST' ,
28
29
data : config . payload ,
29
- dataType : " json" ,
30
+ dataType : ' json' ,
30
31
error : function ( error ) {
31
- console . log ( error )
32
+ console . log ( error ) ;
32
33
}
33
34
} ) ;
34
- }
35
+ } ;
35
36
} ) ;
You can’t perform that action at this time.
0 commit comments