plausible / plausible-tracker

Frontend library to interact with Plausible Analytics
https://github.com/plausible/plausible-tracker
MIT License
215 stars 50 forks source link

Adds additional check if process is undefined #15

Closed Zwergenpunk closed 3 years ago

Zwergenpunk commented 3 years ago

In my project there was an issue where process was undefined. Not quite sure, how and why. This happens only when a link is clicked in a modal. 🤷

This adds a safe way of checking if the variable is set without crashing.

Checklist:

ukutaht commented 3 years ago

Looks good to me

Thanks @Zwergenpunk