Skip to content

Commit

Permalink
[Fix] Update dnt codes (#1755)
Browse files Browse the repository at this point in the history
1) Remove useless website link.
2) Simplify return value.
  • Loading branch information
Maledong committed Jul 28, 2018
1 parent 55e5f62 commit 34ad4dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions static/js/dnt_helper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* http://schalkneethling.github.io/blog/2015/11/06/respect-user-choice-do-not-track/
* https://github.com/schalkneethling/dnt-helper/blob/master/js/dnt-helper.js
*
* Returns true or false based on whether doNotTack is enabled. It also takes into account the
Expand Down Expand Up @@ -45,5 +44,5 @@ function _dntEnabled(dnt, userAgent) {
dntStatus = { '0': 'Disabled', '1': 'Enabled' }[dntStatus] || 'Unspecified';
}

return dntStatus === 'Enabled' ? true : false;
return dntStatus === 'Enabled';
}

0 comments on commit 34ad4dd

Please sign in to comment.