Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.2.1 / 2017-08-23
==================

* Reversal of setUser function check logic

2.2.0 / 2017-08-17
==================

Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Elevio.prototype.identify = function(identify) {
if (plan) user.groups = [plan];
if (objectKeys(traits).length > 0) user.traits = traits;
window._elev.user = user;
if (typeof window._elev.setUser !== 'function') {
if (typeof window._elev.setUser === 'function') {
window._elev.setUser(user);
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@segment/analytics.js-integration-elevio",
"description": "The Elevio analytics.js integration.",
"version": "2.2.0",
"version": "2.2.1",
"keywords": [
"analytics.js",
"analytics.js-integration",
Expand Down