svn commit: r41848 - head/en_US.ISO8859-1/htdocs/layout/js
Hiroki Sato
hrs at FreeBSD.org
Fri Jun 7 00:26:15 UTC 2013
Eitan Adler <eadler at freebsd.org> wrote
in <CAF6rxg=tnyCyLP50RpO8j20jbnGO_Mycb7aq5P3pRVz9NtvokA at mail.gmail.com>:
ea> On 6 June 2013 16:28, Hiroki Sato <hrs at freebsd.org> wrote:
ea> >
ea> > null, "", and undefined are evaluated as false in Javascript.
ea> >
ea> Javascript has an odd concept of true and false:
ea> null, an empty string, +0, -0, and NaN, and false are the 'false' values.
ea>
ea> An object will return true.
I see. I am not familiar with DNT implementation, but is there a www
browser to define navigator.doNotTrack as the value "false"?
If so, I think something like the following is needed.
var dnt = window.navigator.msDoNotTrack || window.navigator.doNotTrack;
var allow_track = (dnt && dnt == 'yes'|| dnt == 1);
-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-doc-all/attachments/20130607/2105ce65/attachment.sig>
More information about the svn-doc-all
mailing list