Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 6155cfd

Browse files
duellsyHan
authored andcommitted
Release 2.2.1
* bug fix around setUser function check logic
1 parent 889224c commit 6155cfd

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2.2.1 / 2017-08-23
2+
==================
3+
4+
* Reversal of setUser function check logic
5+
16
2.2.0 / 2017-08-17
27
==================
38

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Elevio.prototype.identify = function(identify) {
6868
if (plan) user.groups = [plan];
6969
if (objectKeys(traits).length > 0) user.traits = traits;
7070
window._elev.user = user;
71-
if (typeof window._elev.setUser !== 'function') {
71+
if (typeof window._elev.setUser === 'function') {
7272
window._elev.setUser(user);
7373
}
7474
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@segment/analytics.js-integration-elevio",
33
"description": "The Elevio analytics.js integration.",
4-
"version": "2.2.0",
4+
"version": "2.2.1",
55
"keywords": [
66
"analytics.js",
77
"analytics.js-integration",

0 commit comments

Comments
 (0)