Skip to content

Commit

Permalink
identify when eb user know
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolaaas committed Jul 13, 2018
1 parent fdc9bd5 commit 143ff91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"webpack-dev-server": "^2.9.5"
},
"name": "earlybirds-js",
"version": "1.0.2",
"version": "1.0.3",
"main": "index.js",
"directories": {
"test": "tests"
Expand Down
5 changes: 4 additions & 1 deletion src/eb.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ class Eb {
options = { cookieDuration: 3600000 }, // 1 hour in milliseconds : 60 * 60 * 1000
) {
if (!this.trackerKey) return null;

if (this.profile && this.profile.id && this.profile.id !== ''
&& !newProfile.profile.datasources){
newProfile.profile.id = this.profile.id;
}
if (shouldInitiateIdentifyRequest(
newProfile,
this.profile,
Expand Down

0 comments on commit 143ff91

Please sign in to comment.