security/codeql-dependabot-gitleaks
| 1 | const { isCI } = require("./util/is-ci") |
| 2 | |
| 3 | try { |
| 4 | const showAnalyticsNotification = require(`./util/show-notification`) |
| 5 | const Store = require(`./store`) |
| 6 | |
| 7 | const eventStorage = new Store() |
| 8 | const disabled = eventStorage.disabled_ |
| 9 | const enabledInConfig = eventStorage.getConfig(`telemetry.enabled`) |
| 10 | if (enabledInConfig === undefined && !disabled && !isCI()) { |
| 11 | showAnalyticsNotification() |
| 12 | } |
| 13 | } catch (e) { |
| 14 | // ignore |
| 15 | } |