Skip to content

Commit 7afd477

Browse files
chore: generate
1 parent fe143df commit 7afd477

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/ui/src/components/message-part.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ async function writeClipboard(text: string): Promise<boolean> {
7676

7777
const clipboard = typeof navigator === "undefined" ? undefined : navigator.clipboard
7878
if (!clipboard?.writeText) return false
79-
return clipboard.writeText(text).then(() => true, () => false)
79+
return clipboard.writeText(text).then(
80+
() => true,
81+
() => false,
82+
)
8083
}
8184

8285
function ShellSubmessage(props: { text: string; animate?: boolean }) {

0 commit comments

Comments
 (0)