We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e7d511 commit ed113ebCopy full SHA for ed113eb
src/components/CopyToClipboard/copyText.ts
@@ -1,7 +1,7 @@
1
export function copyText(text: string) {
2
if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {
3
try {
4
- return navigator.clipboard.writeText(text);
+ navigator.clipboard.writeText(text);
5
} catch (error) {
6
return typeof document === 'undefined' ? Promise.reject(error) : copyTextFallback(text);
7
}
0 commit comments