UNPKG

402 BJavaScriptView Raw
1'use strict';
2// This file is ES6 because it needs to be executed as is.
3
4if ('NG_CLI_ANALYTICS' in process.env) {
5 return;
6}
7
8try {
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 (_) {}