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