diff --git a/src/components/IconGrid/InfoPanel.tsx b/src/components/IconGrid/InfoPanel.tsx index 33514c0..185c9d0 100644 --- a/src/components/IconGrid/InfoPanel.tsx +++ b/src/components/IconGrid/InfoPanel.tsx @@ -60,8 +60,8 @@ const InfoPanel: React.FC = (props) => { event.currentTarget.blur(); setCopied(type); const data = snippets[type]; - if (!navigator.clipboard) throw new Error("no clipboard!"); - data && navigator.clipboard.writeText(data); + // if (!navigator.clipboard) throw new Error("no clipboard!"); + data && void(navigator.clipboard?.writeText(data)); }; const handleDownloadSVG = ( @@ -78,7 +78,7 @@ const InfoPanel: React.FC = (props) => { ) => { event.currentTarget.blur(); setCopied("svg"); - ref.current && navigator.clipboard.writeText(ref.current.outerHTML); + ref.current && void(navigator.clipboard?.writeText(ref.current.outerHTML)); }; return (