From 7e2c91e4911eec16fcf87a17a2369554705c9dcf Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Wed, 12 Jun 2013 21:45:27 +0000 Subject: [PATCH] Ah ECMAScript, how I wish you were sane. Approved by: doceng --- en_US.ISO8859-1/htdocs/layout/js/google.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en_US.ISO8859-1/htdocs/layout/js/google.js b/en_US.ISO8859-1/htdocs/layout/js/google.js index a14b52aa5f..364269af20 100644 --- a/en_US.ISO8859-1/htdocs/layout/js/google.js +++ b/en_US.ISO8859-1/htdocs/layout/js/google.js @@ -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; }