diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 113669013..0e0a1a9e4 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -85,11 +85,13 @@ export class AppComponent { ) .subscribe() - _togglzService.getStateOf('NEW_RELIC_BROWSER_MONITORING').subscribe((value) => { - if (true) { - _newRelicService.init() - } - }) + _togglzService + .getStateOf('NEW_RELIC_BROWSER_MONITORING') + .subscribe((NEW_RELIC_BROWSER_MONITORING) => { + if (NEW_RELIC_BROWSER_MONITORING) { + _newRelicService.init() + } + }) _router.events.subscribe((event) => { if (event instanceof NavigationStart) { diff --git a/src/index.html b/src/index.html index 75d6f26a5..15886b0e0 100644 --- a/src/index.html +++ b/src/index.html @@ -9,7 +9,55 @@ - +