Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

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

Open
wbazant wants to merge 1 commit intoebiwd:v1.2from
wbazant:v1.2
Open

A better way to reference the global window.ga#97
wbazant wants to merge 1 commit intoebiwd:v1.2from
wbazant:v1.2

Conversation

@wbazant
Copy link

@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 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.

1 participant