Ah ECMAScript, how I wish you were sane.

Approved by:	doceng
This commit is contained in:
Eitan Adler 2013-06-12 21:45:27 +00:00
parent fd6ba6e9e0
commit 7e2c91e491
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=41917

View file

@ -18,7 +18,7 @@ var h = document.location.host;
*/
var fbsdregex = /((docs|security|svnweb|wiki|www)\.freebsd\.org|google\.com)/i;
if (navigator.doNotTrack == "yes" || navigator.doNotTrack == "1") {
if (typeof navigator.doNotTrack !== "undefined" && (navigator.doNotTrack == "yes" || navigator.doNotTrack == "1")) {
allow_track = false;
}