Skip to content

Commit bd53ba7

Browse files
committed
Added ability to send an empty contexts array (closes #296)
1 parent 118d6e9 commit bd53ba7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Version 0.4.0 (2014-xx-xx)
22
--------------------------
33
Updated contexts schema to 1-0-1 (#292)
4+
Added ability to send an empty contexts array (#296)
45

56
Version 0.3.0 (2014-11-04)
67
--------------------------

core/lib/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function trackerCore(base64, callback) {
6868
* @return object Outer JSON
6969
*/
7070
function completeContexts(contexts) {
71-
if (contexts && contexts.length) {
71+
if (contexts) {
7272
return {
7373
schema: 'iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-1',
7474
data: contexts

0 commit comments

Comments
 (0)