1 | try {
|
2 | const showAnalyticsNotification = require(`./showAnalyticsNotification`)
|
3 | const EventStorage = require(`./event-storage`)
|
4 |
|
5 | const { isCI } = require(`gatsby-core-utils`)
|
6 | const eventStorage = new EventStorage()
|
7 | const disabled = eventStorage.disabled
|
8 | const enabledInConfig = eventStorage.getConfig(`telemetry.enabled`)
|
9 | if (enabledInConfig === undefined && !disabled && !isCI()) {
|
10 | showAnalyticsNotification()
|
11 | }
|
12 | } catch (e) {
|
13 | // ignore
|
14 | }
|