mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
umami - don't collect if noTrack is set
This commit is contained in:
parent
84c4e9f880
commit
43561df98b
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,5 @@
|
|||
(window => {
|
||||
const noTrack = window.localStorage.getItem("noTrack");
|
||||
if (noTrack) return;
|
||||
|
||||
const {
|
||||
screen: {width, height},
|
||||
|
|
@ -22,6 +21,8 @@
|
|||
};
|
||||
|
||||
const collect = (type, params) => {
|
||||
if (noTrack) return;
|
||||
|
||||
const payload = {website, hostname, screen, language, cache: false};
|
||||
Object.keys(params).forEach(key => {
|
||||
payload[key] = params[key];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue