diff --git a/components/CopyToClipboard/index.tsx b/components/CopyToClipboard/index.tsx index 598fa35c..53f41cce 100644 --- a/components/CopyToClipboard/index.tsx +++ b/components/CopyToClipboard/index.tsx @@ -32,7 +32,7 @@ const CopyToClipboard: React.FunctionComponent = ({ const [copied, setCopied] = useState(false); const [waitingForContent, setWaitingForContent] = useState(false); const [copyError, setCopyError] = useState(null); - const { clipboard } = navigator; + const { clipboard } = typeof navigator === 'object' && navigator; if (!clipboard) { return null; } diff --git a/directory.json b/directory.json index 1ad85d86..8e37ac2a 100644 --- a/directory.json +++ b/directory.json @@ -2397,4 +2397,4 @@ "app-errors": "Application / User Errors", "unknown": "Unknown Events" } -} +} \ No newline at end of file