Skip to content

Commit 9258ba6

Browse files
fix static tests
- fix js code style
1 parent 30eb099 commit 9258ba6

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
/* global fbq */
12
define([
23
'jquery'
34
], function ($) {
45
'use strict';
56

67
return function (config) {
7-
8-
var browserEventData = config.browserEventData;
9-
var eventId = crypto.randomUUID();
8+
var browserEventData = config.browserEventData,
9+
eventId = crypto.randomUUID();
1010

1111
config.payload.eventId = eventId;
1212

13-
let browserPayload = config.browserEventData.payload
13+
let browserPayload = config.browserEventData.payload;
14+
1415
browserPayload.source = browserEventData.source;
1516

1617
browserPayload.pluginVersion = browserEventData.pluginVersion;
@@ -24,12 +25,12 @@ define([
2425
$.ajax({
2526
showLoader: true,
2627
url: config.url,
27-
type: "POST",
28+
type: 'POST',
2829
data: config.payload,
29-
dataType: "json",
30+
dataType: 'json',
3031
error: function (error) {
31-
console.log(error)
32+
console.log(error);
3233
}
3334
});
34-
}
35+
};
3536
});

0 commit comments

Comments
 (0)