Skip to content

Commit

Permalink
Simplify URL and enable in production only
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Dec 7, 2020
1 parent 338ebe0 commit 659a64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ra-core/src/core/CoreAdminUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ const CoreAdminUI: FunctionComponent<AdminUIProps> = ({
}) => {
return (
<>
{process.env.NODE_ENV === 'development' &&
{process.env.NODE_ENV === 'production' &&
disableTelemetry !== true &&
typeof window !== 'undefined' ? (
<img
src={`https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=${window.location.hostname}`}
src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry"
width="0"
height=""
alt=""
Expand Down

0 comments on commit 659a64a

Please sign in to comment.