Skip to content

Mock GA object when in Hugo server mode#28484

Closed
peterblazejewicz wants to merge 1 commit intotwbs:masterfrom
peterblazejewicz:feat/hugo-dev-header
Closed

Mock GA object when in Hugo server mode#28484
peterblazejewicz wants to merge 1 commit intotwbs:masterfrom
peterblazejewicz:feat/hugo-dev-header

Conversation

@peterblazejewicz
Copy link
Copy Markdown
Contributor

The project started using Hugo after #28014
Now when in development mode the JavaScript errors occurs when using some links on the website:

Uncaught ReferenceError: ga is not defined
    at HTMLAnchorElement.onclick ((index):75)
onclick | @ | (index):75

This minor change removes these errors during development.

Thanks!

This removes runtime JavaScript errors when using links within docs
website with GA code

Thanks!
@XhmikosR
Copy link
Copy Markdown
Member

I think I will just revert the local change. I find no use for it.

Thanks for the PR though :)

@XhmikosR XhmikosR closed this Mar 14, 2019
@peterblazejewicz
Copy link
Copy Markdown
Contributor Author

for ref:
#28489 (comment)

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.

2 participants