Adding check to see if analytics is disabled completely (in dev).
This commit is contained in:
parent
2e1ce270e4
commit
e4774f43e8
|
@ -125,7 +125,12 @@ export default {
|
||||||
requestFeedbackOnDeploy,
|
requestFeedbackOnDeploy,
|
||||||
submitFeedback,
|
submitFeedback,
|
||||||
highlightFeedbackIcon,
|
highlightFeedbackIcon,
|
||||||
disabled: ifAnalyticsEnabled(disabled),
|
disabled: () => {
|
||||||
|
if (analyticsEnabled == null) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return ifAnalyticsEnabled(disabled)
|
||||||
|
},
|
||||||
optIn: ifAnalyticsEnabled(optIn),
|
optIn: ifAnalyticsEnabled(optIn),
|
||||||
optOut: ifAnalyticsEnabled(optOut),
|
optOut: ifAnalyticsEnabled(optOut),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue