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

A better way to reference the global window.ga #97

Open
wants to merge 1 commit into
base: v1.2
Choose a base branch
from
Open

A better way to reference the global window.ga #97

wants to merge 1 commit into from

Conversation

wbazant
Copy link
Contributor

@wbazant wbazant commented Jul 10, 2017

The previous PR was my mistake and I clearly didn't test enough, sorry!

Instead of "catch when ga is undefined" reference the global object from window

You can't use an undefined global - that's the scenario for Uncaught ReferenceError - unless by seeing if it's present in window (says the Internet)

mitigates #96

This reverts commit 3286d81

…rom window

You can't use an undefined global - that's the scenario for Uncaught ReferenceError - unless by seeing if it's present in window (says the Internet)

mitigates #96

This reverts commit 3286d81
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

Successfully merging this pull request may close these issues.

1 participant