We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d25d4c commit 3b49d50Copy full SHA for 3b49d50
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