Skip to content

Commit 666b6ce

Browse files
committed
Merge branch 'feature/2.1.1'
2 parents 19af1d0 + 7048cbd commit 666b6ce

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 2.1.1 (2014-11-06)
2+
--------------------------
3+
Rounded chromeFirstPaint field to an integer (#282)
4+
15
Version 2.1.0 (2014-11-05)
26
--------------------------
37
Added automated form submission tracking (#252)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "snowplow-tracker",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"devDependencies": {
55
"JSON": "~1.0.0",
66
"browser-cookie-lite": "~0.3.1",

src/js/tracker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@
581581
// Add the Chrome firstPaintTime to the performance if it exists
582582
if (window.chrome && window.chrome.loadTimes && typeof window.chrome.loadTimes().firstPaintTime === 'number') {
583583
performanceTiming = lodash.clone(performanceTiming);
584-
performanceTiming.chromeFirstPaint = window.chrome.loadTimes().firstPaintTime * 1000;
584+
performanceTiming.chromeFirstPaint = Math.round(window.chrome.loadTimes().firstPaintTime * 1000);
585585
}
586586

587587
context = context || [];

0 commit comments

Comments
 (0)