Adding check to see if analytics is disabled completely (in dev).

This commit is contained in:
mike12345567 2021-02-23 16:50:41 +00:00
parent 2e1ce270e4
commit e4774f43e8
1 changed files with 6 additions and 1 deletions

View File

@ -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),
} }