We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be21077 commit e6feb0dCopy full SHA for e6feb0d
packages/angular/cli/bin/postinstall/analytics-prompt.js
@@ -5,10 +5,12 @@ if ('NG_CLI_ANALYTICS' in process.env) {
5
return;
6
}
7
8
-try {
9
- const analytics = require('../../models/analytics');
+(async () => {
+ try {
10
+ const analytics = require('../../models/analytics');
11
- if (!analytics.hasGlobalAnalyticsConfiguration()) {
12
- analytics.promptGlobalAnalytics();
13
- }
14
-} catch (_) {}
+ if (!analytics.hasGlobalAnalyticsConfiguration()) {
+ await analytics.promptGlobalAnalytics();
+ }
15
+ } catch (_) {}
16
+})();
0 commit comments