Skip to content

Commit 8e6b4c4

Browse files
committed
Formatting: changed spaces to tabs
1 parent fd7be9a commit 8e6b4c4

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Added pageUnloadTimer option to argmap (#171)
3535
Added event vendor as argument to trackUnstructEvent (#157)
3636
Added custom context vendor configuration option (#180)
3737
Removed type hints from unstructured events and custom contexts (#163)
38+
Added hardcoded header to custom context arrays (#199)
3839

3940
Version 1.0.3 (2014-06-27)
4041
--------------------------

examples/web/async-small.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
;(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[];
2424
p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments)
2525
};p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1;
26-
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script", "//d1fc8wv8zag5ca.cloudfront.net/2/sp.js","snowplow"));
26+
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","//d1fc8wv8zag5ca.cloudfront.net/2/sp.js","snowplow"));
2727

2828
window.snowplow('newTracker', 'cf', 'd3rkrsqld9gmqf.cloudfront.net', { // Initialise a tracker
2929
encodeBase64: false, // Default is true

src/js/tracker.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@
9898

9999
// The header field attached to all custom context JSONs
100100
configDefaultHeader = {
101-
"type": "us_contexts",
102-
"version": "1.0.0",
103-
"vendor": "com.snowplowanalytics"
104-
},
101+
type: "us_contexts",
102+
version: "1.0.0",
103+
vendor: "com.snowplowanalytics"
104+
},
105105

106106
// Platform defaults to web for this tracker
107107
configPlatform = argmap.hasOwnProperty('platform') ? argmap.platform : 'web',
@@ -562,7 +562,7 @@
562562
* @return string collectorUrl The tracker URL with protocol
563563
*/
564564
function asCollectorUrl(rawUrl) {
565-
return ('https:' == documentAlias.location.protocol ? 'https' : 'http') + '://' + rawUrl + '/i';
565+
return ('https:' == documentAlias.location.protocol ? 'https' : 'http') + '://' + rawUrl + '/i';
566566
}
567567

568568
/**
@@ -1353,7 +1353,7 @@
13531353
* @param object Custom context relating to the event
13541354
*/
13551355
trackStructEvent: function (category, action, label, property, value, context) {
1356-
logStructEvent(category, action, label, property, value, context);
1356+
logStructEvent(category, action, label, property, value, context);
13571357
},
13581358

13591359
/**

0 commit comments

Comments
 (0)