Skip to content

Commit ed113eb

Browse files
committed
fix: copyClipboard
1 parent 6e7d511 commit ed113eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/CopyToClipboard/copyText.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export function copyText(text: string) {
22
if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {
33
try {
4-
return navigator.clipboard.writeText(text);
4+
navigator.clipboard.writeText(text);
55
} catch (error) {
66
return typeof document === 'undefined' ? Promise.reject(error) : copyTextFallback(text);
77
}

0 commit comments

Comments
 (0)