Skip to content

Commit 659a64a

Browse files
committed
Simplify URL and enable in production only
1 parent 338ebe0 commit 659a64a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ra-core/src/core/CoreAdminUI.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ const CoreAdminUI: FunctionComponent<AdminUIProps> = ({
5757
}) => {
5858
return (
5959
<>
60-
{process.env.NODE_ENV === 'development' &&
60+
{process.env.NODE_ENV === 'production' &&
6161
disableTelemetry !== true &&
6262
typeof window !== 'undefined' ? (
6363
<img
64-
src={`https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=${window.location.hostname}`}
64+
src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry"
6565
width="0"
6666
height=""
6767
alt=""

0 commit comments

Comments
 (0)