From 34ad4dd8ab83c69420cda0354ce25c4f21247c2f Mon Sep 17 00:00:00 2001 From: Maledong Date: Sat, 28 Jul 2018 16:19:35 +0800 Subject: [PATCH] [Fix] Update dnt codes (#1755) 1) Remove useless website link. 2) Simplify return value. --- static/js/dnt_helper.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/dnt_helper.js b/static/js/dnt_helper.js index 9906db4f276c..1aea14bb977b 100644 --- a/static/js/dnt_helper.js +++ b/static/js/dnt_helper.js @@ -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 @@ -45,5 +44,5 @@ function _dntEnabled(dnt, userAgent) { dntStatus = { '0': 'Disabled', '1': 'Enabled' }[dntStatus] || 'Unspecified'; } - return dntStatus === 'Enabled' ? true : false; + return dntStatus === 'Enabled'; }