web: default telemetry state should follow DNT header

This commit is contained in:
Abdullah Atta
2023-01-17 16:51:29 +05:00
parent 0f8f53d811
commit 0d3504dca0

View File

@@ -22,7 +22,7 @@ import Config from "./config";
export function isTelemetryEnabled() {
return (
process.env.NODE_ENV === "production" &&
(Config.get("telemetry", true) || !doNotTrack())
(Config.get("telemetry", doNotTrack()) || !doNotTrack())
);
}