Hide secure alert on onion address

This commit is contained in:
koalasat 2025-02-13 12:21:05 +01:00
parent 8f4859908f
commit 97641cfee7
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157

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;