-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chmln returns strange error (react/next.js) #4
Comments
@adammo94 are you encountering a specific error with the above code or just that window.chmln (after calling I'd say your implementation looks good to me -- do you need to anything "more" than what you have here? |
Yes, here
Which is exactly my case. I want to use window.chmln.clear, however since window.chmln changed into this |
@kovcic Right. |
@DamirMinkashev @kovcic I see what you're referencing -- if you store and use the reference to "this library", the object you store will not (yet) have the other JavaScript api functions (such as clear, on, etc.). The immediate workaround is to re-reference |
So I have this react (next.js actually) implementation:
however let's say I just open chrome dev tools and when I log in and type in window.chmln or just chmln it returns something like this:
(t){"progeny-definition"!==t&&(e.instanceMethods.init.apply(this,arguments),d.init.apply(this,arguments))}
If I don't use chmln.identify method it (window.chmln inside dev tools' console) works just fine. What am I doing wrong?
The text was updated successfully, but these errors were encountered: