Skip to content
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

Erroring when in Dev Mode #11

Open
awjudd opened this issue Jan 17, 2020 · 0 comments
Open

Erroring when in Dev Mode #11

awjudd opened this issue Jan 17, 2020 · 0 comments

Comments

@awjudd
Copy link

awjudd commented Jan 17, 2020

I am currently developing a site using this, and noticed that if I reference the following:

this.$matomo.trackPageView()

I get an error because this.$matomo is not initialized (due to the bail out in module.js). Instead of doing this wouldn't it make sense for the application to just return a dummy proxy that does nothing instead? That way your code is able to run if you reference it without any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant