Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
404 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 | // This file is ES6 because it needs to be executed as is.
|
---|
| 3 |
|
---|
| 4 | if ('NG_CLI_ANALYTICS' in process.env) {
|
---|
| 5 | return;
|
---|
| 6 | }
|
---|
| 7 |
|
---|
| 8 | try {
|
---|
| 9 | var analytics = require('../../models/analytics');
|
---|
| 10 |
|
---|
| 11 | analytics
|
---|
| 12 | .hasGlobalAnalyticsConfiguration()
|
---|
| 13 | .then((hasGlobalConfig) => {
|
---|
| 14 | if (!hasGlobalConfig) {
|
---|
| 15 | return analytics.promptGlobalAnalytics();
|
---|
| 16 | }
|
---|
| 17 | })
|
---|
| 18 | .catch(() => {});
|
---|
| 19 | } catch (_) {}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.