Skip to content

Commit

Permalink
πŸ› Check for dynatrace before calling function #1309
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandolucchesi committed Nov 1, 2022
1 parent 52ae875 commit 3a4bd3d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/pageComponents/Dynatrace.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* eslint-disable no-undef */
export const enableDynatrace = () => dtrum?.enable()
export const disableDynatrace = () => dtrum?.disable()
export const enableDynatrace = () => {
if (dtrum) dtrum?.enable()
}
export const disableDynatrace = () => {
if (dtrum) dtrum?.disable()
}

0 comments on commit 3a4bd3d

Please sign in to comment.