diff --git a/frontend/src/components/Dialogs/Stats.tsx b/frontend/src/components/Dialogs/Stats.tsx index 6f796e3a..2fbaf2e8 100644 --- a/frontend/src/components/Dialogs/Stats.tsx +++ b/frontend/src/components/Dialogs/Stats.tsx @@ -36,6 +36,12 @@ interface Props { const StatsDialog = ({ open = false, onClose, info }: Props): JSX.Element => { const { t } = useTranslation(); + const isOnionAccess = window.location.hostname.endsWith('.onion'); + + const ambossURL = isOnionAccess + ? `http://amboss5jfdzzblty5dr5zaig5twvkgsla6y5xuy6s5c5ogpjfcqgltid.onion/node/${info.node_id}` + : `https://amboss.space/node/${info.node_id}`; + return (
@@ -107,11 +113,7 @@ const StatsDialog = ({ open = false, onClose, info }: Props): JSX.Element => { - + {`${info.node_id.slice(0, 12)}... (AMBOSS)`}