[Telemetry] Fix license page crashing on telemetry.enabled: fa… (#54174)
This commit is contained in:
parent
71ff2de7e1
commit
392e62a4de
|
@ -52,7 +52,7 @@ if (licenseManagementUiEnabled) {
|
|||
};
|
||||
|
||||
const initializeTelemetry = ($injector: any) => {
|
||||
const telemetryEnabled = $injector.get('telemetryEnabled');
|
||||
const telemetryEnabled = npStart.core.injectedMetadata.getInjectedVar('telemetryEnabled');
|
||||
const Private = $injector.get('Private');
|
||||
const telemetryOptInProvider = Private(TelemetryOptInProvider);
|
||||
setTelemetryOptInService(telemetryOptInProvider);
|
||||
|
|
Loading…
Reference in a new issue