1 | "use strict";
|
2 |
|
3 | try {
|
4 | const showAnalyticsNotification = require(`./showAnalyticsNotification`);
|
5 |
|
6 | const EventStorage = require(`./event-storage`);
|
7 |
|
8 | const {
|
9 | isCI
|
10 | } = require(`gatsby-core-utils`);
|
11 |
|
12 | const eventStorage = new EventStorage();
|
13 | const disabled = eventStorage.disabled;
|
14 | const enabledInConfig = eventStorage.getConfig(`telemetry.enabled`);
|
15 |
|
16 | if (enabledInConfig === undefined && !disabled && !isCI()) {
|
17 | showAnalyticsNotification();
|
18 | }
|
19 | } catch (e) {
|
20 | } |
\ | No newline at end of file |