svn commit: r41914 - head/en_US.ISO8859-1/htdocs/layout/js

Eitan Adler eadler at FreeBSD.org
Wed Jun 12 20:52:32 UTC 2013


Author: eadler
Date: Wed Jun 12 20:52:31 2013
New Revision: 41914
URL: http://svnweb.freebsd.org/changeset/doc/41914

Log:
  Fix GA on the website.  The version as committed now does not function.
  
  Note that different browsers implement different methods of DNT and
  that some chosen values for the JS API has changed sine this was originally implemented.
  
  Approved by:	doceng

Modified:
  head/en_US.ISO8859-1/htdocs/layout/js/google.js

Modified: head/en_US.ISO8859-1/htdocs/layout/js/google.js
==============================================================================
--- head/en_US.ISO8859-1/htdocs/layout/js/google.js	Wed Jun 12 19:23:37 2013	(r41913)
+++ head/en_US.ISO8859-1/htdocs/layout/js/google.js	Wed Jun 12 20:52:31 2013	(r41914)
@@ -18,7 +18,7 @@ var h = document.location.host;
  */
 var fbsdregex = /((docs|security|svnweb|wiki|www)\.freebsd\.org|google\.com)/i;
 
-if (window.navigator.doNotTrack == true) {
+if (navigator.doNotTrack == "yes" || navigator.doNotTrack == "1") {
 	allow_track = false;
 }
 


More information about the svn-doc-head mailing list