Merge pull request #1733 from RoboSats/hide-secure-alert-notification-on-onion-address

Hide secure alert on onion address
This commit is contained in:
KoalaSat
2025-02-13 11:22:25 +00:00
committed by GitHub

View File

@ -9,7 +9,7 @@ const HostAlert = (): JSX.Element => {
!hostUrl.includes('robosats') && (client === 'selfhosted' || client === 'desktop') !hostUrl.includes('robosats') && (client === 'selfhosted' || client === 'desktop')
? SelfhostedAlert ? SelfhostedAlert
: UnsafeAlert; : UnsafeAlert;
return component(); return hostUrl.endsWith('.onion') ? <></> : component();
}; };
export default HostAlert; export default HostAlert;