mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-15 17:31:23 +02:00
Merge pull request #4098 from aaronraimist/donottrack
Don't ask to enable analytics when Do Not Track is enabled
This commit is contained in:
commit
dc3afb3e57
@ -585,7 +585,8 @@ const LoggedInView = createReactClass({
|
||||
limitType={usageLimitEvent.getContent().limit_type}
|
||||
/>;
|
||||
} else if (this.props.showCookieBar &&
|
||||
this.props.config.piwik
|
||||
this.props.config.piwik &&
|
||||
navigator.doNotTrack !== "1"
|
||||
) {
|
||||
const policyUrl = this.props.config.piwik.policyUrl || null;
|
||||
topBar = <CookieBar policyUrl={policyUrl} />;
|
||||
|
Loading…
x
Reference in New Issue
Block a user