Closed agross closed 7 years ago
Chrome 60, I disabled DNT in settings. this.isToTrack() returns undefined which is then negated to true.
this.isToTrack()
undefined
true
isToTrack: function () { var dnt = navigator.doNotTrack || navigator.msDoNotTrack || window.doNotTrack; // dnt === undefined return (dnt !== null) ? (dnt && dnt !== 'yes' && dnt !== 1 && dnt !== '1') : true; // dnt && dnt !== 'yes' && dnt !== 1 && dnt !== '1' === undefined },
I tested a bit more with Chrome and Edge:
In Chrome dnt === undefined, hence (dnt !== null) === true .
dnt === undefined
(dnt !== null) === true
In Edge, dnt === null, hence (dnt !== null) === false.
dnt === null
(dnt !== null) === false
Should be fixed in 1.2.9.
Thank you!
Chrome 60, I disabled DNT in settings.
this.isToTrack()
returnsundefined
which is then negated totrue
.