Charles Lyding b630317b4b refactor(@angular/cli): convert workspace access to async
This is in preparation for conversion from the experimental workspace API to the stable workspace API.
2019-08-16 09:32:04 -07:00

17 lines
363 B
JavaScript

'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 (_) {}