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 fa4d0d1696
commit b9439affc0
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),
} }