mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-11 17:44:19 -05:00
hide core pubkey copy if origin not https
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user