Skip to content

Commit

Permalink
new relic
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Sep 3, 2024
1 parent 5244e1f commit 8d50fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/core/new-relic/new-relic.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export class NewRelicService {
) {}

public init() {
if ((window as any).newrelic) {
(window as any).newrelic.addPageAction('init')
if ((window as any)?.newrelic?.start && typeof (window as any).newrelic.start === 'function' ) {
(window as any).newrelic.start()
}
}

Expand Down

0 comments on commit 8d50fd7

Please sign in to comment.