source: trip-planner-front/node_modules/@angular/cli/bin/postinstall/analytics-prompt.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 404 bytes
Line 
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 (_) {}
Note: See TracBrowser for help on using the repository browser.