We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36e541c commit 49034c6Copy full SHA for 49034c6
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