mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
respect DNT
This commit is contained in:
parent
5ad0ff3fa4
commit
4a3ce9acba
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@ import { post, hook } from '../lib/web';
|
|||||||
|
|
||||||
const script = document.querySelector('script[data-website-id]');
|
const script = document.querySelector('script[data-website-id]');
|
||||||
|
|
||||||
if (!script) return;
|
if (!script || navigator.doNotTrack === "1") return;
|
||||||
|
|
||||||
const website = script.getAttribute('data-website-id');
|
const website = script.getAttribute('data-website-id');
|
||||||
const hostUrl = new URL(script.src).origin;
|
const hostUrl = new URL(script.src).origin;
|
||||||
|
Loading…
Reference in New Issue
Block a user