projecte_ionic/node_modules/@angular/cli/bin/postinstall/analytics-prompt.js
2022-02-09 18:30:03 +01:00

19 lines
404 B
JavaScript
Executable file

'use strict';
// This file is ES6 because it needs to be executed as is.
if ('NG_CLI_ANALYTICS' in process.env) {
return;
}
try {
var analytics = require('../../models/analytics');
analytics
.hasGlobalAnalyticsConfiguration()
.then((hasGlobalConfig) => {
if (!hasGlobalConfig) {
return analytics.promptGlobalAnalytics();
}
})
.catch(() => {});
} catch (_) {}