Hans Larsen e96c7ce291 feat(@angular/cli): add prompt on post install step
Only prompt the user on interactive terminals.
2019-03-20 15:08:07 -07:00

11 lines
252 B
JavaScript

'use strict';
// This file is ES6 because it needs to be executed as is.
try {
const analytics = require('../../models/analytics');
if (analytics.getGlobalAnalytics() === undefined) {
analytics.promptGlobalAnalytics(true);
}
} catch (_) {}