fix: ci detection

This commit is contained in:
Sebastian Rindom
2021-08-05 13:17:17 +02:00
parent b988b67118
commit 9475ed7689
3 changed files with 100 additions and 4 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
const { isCI } = require("./util/is-cli")
try {
const showAnalyticsNotification = require(`./util/show-notification`)
const Store = require(`./store`)
@@ -5,7 +7,7 @@ try {
const eventStorage = new Store()
const disabled = eventStorage.disabled_
const enabledInConfig = eventStorage.getConfig(`telemetry.enabled`)
if (enabledInConfig === undefined && !disabled) {
if (enabledInConfig === undefined && !disabled && !isCI()) {
showAnalyticsNotification()
}
} catch (e) {