correct DNT check
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -280,10 +280,7 @@ async function loadApp() {
|
|||||||
} else if (validBrowser) {
|
} else if (validBrowser) {
|
||||||
UpdateChecker.start();
|
UpdateChecker.start();
|
||||||
|
|
||||||
let doNotTrack = navigator.doNotTrack;
|
const doNotTrack = navigator.doNotTrack === 'yes' || navigator.doNotTrack === '1' || navigator.doNotTrack === 1;
|
||||||
if (typeof navigator.doNotTrack === 'string') {
|
|
||||||
doNotTrack = navigator.doNotTrack === 'yes';
|
|
||||||
}
|
|
||||||
if (!doNotTrack && configJson.piwik && configJson.piwik.url && configJson.piwik.siteId) {
|
if (!doNotTrack && configJson.piwik && configJson.piwik.url && configJson.piwik.siteId) {
|
||||||
(function() {
|
(function() {
|
||||||
const g = document.createElement('script');
|
const g = document.createElement('script');
|
||||||
|
|||||||
Reference in New Issue
Block a user