hide core pubkey copy if origin not https

This commit is contained in:
mbecker20
2025-10-19 01:28:45 -07:00
parent e466944c05
commit 6b02aaed7d

View File

@@ -640,6 +640,10 @@ const KeyboardShortcut = ({
export const CopyCorePubkey = () => {
const public_key = useRead("GetCoreInfo", {}).data?.public_key;
// Don't show for non https, copy / clipboard won't work.
if (!location.protocol.startsWith("https")) return;
return (
<HoverCard>
<HoverCardTrigger className="hidden lg:block">