-
Notifications
You must be signed in to change notification settings - Fork 314
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
missing var declaration on mixpanel-jslib-snippet.js #215
Comments
Thanks for the catch! We'll get it in an upcoming release, though you can always expedite by submitting a PR. Re: bundling the async loader ("snippet"): that's a workable approach as long as you ensure you always run that JS bundle before you ever try to access |
Sorry this slipped under the radar; it's been fixed in v2.45.0. |
[SR] Fix race condition for incrementing sequence number
Hi, this is a simple one to fix.
I noticed there are a couple
var
declarations missing in themixpanel-jslib-snippet.js
file.mixpanel-js/mixpanel-jslib-snippet.js
Lines 90 to 91 in a83b082
As I'm using the snippet source code to load mixpanel lib from my Typescript code asynchronously. The Typescript compiler is complaining about those missing
var
declarations.If you wonder why I'm using the snippet code directly in my Typescript files, it's because I don't want to include the snippet in my index.html as I want to keep scripts in the index.html file to a minimum to avoid blocking the UI thread.
I think this approach is a nice workaround for this issue.
The text was updated successfully, but these errors were encountered: