mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-10-27 22:04:26 +00:00
hide copy button when serving http
This commit is contained in:
1 parent
f1c88c0b37
commit
7806faecdc
1 file changed
+15
-1
@@ -40,7 +40,21 @@ const CopyableText = props => {
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
if (typeof navigator.clipboard === 'undefined') {
|
||||
return (
|
||||
<Span hasBorder={props.hasBorder}>
|
||||
{props.text}
|
||||
<StyledButton
|
||||
text
|
||||
formLink
|
||||
inModal={props.inModal}
|
||||
type="button"
|
||||
>
|
||||
</StyledButton>
|
||||
</Span>
|
||||
);
|
||||
}
|
||||
else return (
|
||||
<Span hasBorder={props.hasBorder}>
|
||||
{props.text}
|
||||
<StyledButton
|
||||
|
||||
Reference in new issue
Block a user