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

Conversation

duellsy
Copy link
Contributor

@duellsy duellsy commented Aug 16, 2017

This helps to future proof for companies using the latest version of the embeddable

@codecov-io
Copy link

codecov-io commented Aug 17, 2017

Codecov Report

Merging #9 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #9   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          32     34    +2     
=====================================
+ Hits           32     34    +2
Impacted Files Coverage Δ
lib/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5585b2...71e8d90. Read the comment docs.

Copy link
Contributor

@Peripheral1994 Peripheral1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the PR! I'm taking a look over it now, and it looks good! I left a single small comment, and I'll be happy to merge this in as soon as I can (probably Monday so that I can confirm our build with the new code looks solid).

lib/index.js Outdated
if (plan) user.groups = [plan];
if (objectKeys(traits).length > 0) user.traits = traits;
window._elev.user = user;
if (typeof window._elev.setUser !== 'undefined') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change this to === to 'function' instead? Just to avoid any uncaughts in the browser if, for whatever reason, this property gets overwritten by some defined, non-function value. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have made the update, thanks @Peripheral1994 :)

@hankim813 hankim813 merged commit 889224c into segment-integrations:master Aug 22, 2017
@hankim813
Copy link
Contributor

@duellsy thanks for the PR! Just deployed this. Should be updated for all in the next ~10min

duellsy added a commit to dixahq/analytics.js-integration-elevio that referenced this pull request Aug 23, 2017
@duellsy
Copy link
Contributor Author

duellsy commented Aug 23, 2017

Thanks @hankim813

Actually, a quick hot fix needs to be released, which you can see here: #10

The previous release had a logic error, which is causing issues on multiple sites.

Would appreciate if this could get pushed out quickly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants