mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2025-12-19 05:37:43 +00:00
hide copy button when serving http
This commit is contained in:
@@ -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