Skip to content

Commit 216dae3

Browse files
committed
- added new version
1 parent 7f2250d commit 216dae3

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

dist/breinify-api.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* breinify-api
33
* v1.0.0-snapshot
4-
* 2016-06-14
4+
* 2016-06-21
55
**/
66
/*
77
* We inject a dependencyScope variable, which will be used
@@ -12545,6 +12545,11 @@ dependencyScope.jQuery = $;;
1254512545
instance.add('userAgent', navigator.userAgent);
1254612546
}
1254712547

12548+
// set the referrer to a default value if there isn't one yet
12549+
if (instance.read('referrer') === null) {
12550+
instance.add('referrer', document.referrer);
12551+
}
12552+
1254812553
// try to set the location if there isn't one yet
1254912554
if (instance.read('location') === null && $.isFunction(onReady)) {
1255012555
instance.addGeoLocation(onReady);
@@ -12646,7 +12651,7 @@ dependencyScope.jQuery = $;;
1264612651
this._user[attribute] = value;
1264712652
},
1264812653

12649-
reset: function(attribute) {
12654+
reset: function (attribute) {
1265012655
if ($.isPlainObject(this._user)) {
1265112656
delete this._user[attribute];
1265212657
}

0 commit comments

Comments
 (0)