mirror of https://github.com/status-im/fathom.git
Correct doNotTrack property name
It has to be lower camel case for it to work in browsers, and it’s the way its defined in the spec.
This commit is contained in:
parent
32f4299656
commit
028f8f9307
|
@ -34,7 +34,7 @@ function trackPageview() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Respect "Do Not Track" requests
|
// Respect "Do Not Track" requests
|
||||||
if(navigator.DoNotTrack === "1") {
|
if('doNotTrack' in navigator && navigator.doNotTrack === "1") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue