-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: add support for disabling tracking via localStorage #105
Conversation
Thank you, Mario. |
LGTM 👍. |
location: { hostname }, | ||
} = window; | ||
const hostname = window.location.hostname; | ||
const storage = window.localStorage; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm honestly not sure what the difference in access between window.localStorage
and just using localStorage
is, but I also can't find any information on the internet about this, so if this also works, I don't have an oponion :D
Looks good to me (just see the comment I'm not sure about the difference between the localStorage call via window and without, but if it works it's fine for me!) |
Added support for disabling tracking via localStorage(umami.disabled=1) (#103)