1 parent fe143df commit 7afd477Copy full SHA for 7afd477
1 file changed
packages/ui/src/components/message-part.tsx
@@ -76,7 +76,10 @@ async function writeClipboard(text: string): Promise<boolean> {
76
77
const clipboard = typeof navigator === "undefined" ? undefined : navigator.clipboard
78
if (!clipboard?.writeText) return false
79
- return clipboard.writeText(text).then(() => true, () => false)
+ return clipboard.writeText(text).then(
80
+ () => true,
81
+ () => false,
82
+ )
83
}
84
85
function ShellSubmessage(props: { text: string; animate?: boolean }) {
0 commit comments