opencode-agent[bot] пре 3 месеци
родитељ
комит
7afd477d1a
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      packages/ui/src/components/message-part.tsx

+ 4 - 1
packages/ui/src/components/message-part.tsx

@@ -76,7 +76,10 @@ async function writeClipboard(text: string): Promise<boolean> {
 
 
   const clipboard = typeof navigator === "undefined" ? undefined : navigator.clipboard
   const clipboard = typeof navigator === "undefined" ? undefined : navigator.clipboard
   if (!clipboard?.writeText) return false
   if (!clipboard?.writeText) return false
-  return clipboard.writeText(text).then(() => true, () => false)
+  return clipboard.writeText(text).then(
+    () => true,
+    () => false,
+  )
 }
 }
 
 
 function ShellSubmessage(props: { text: string; animate?: boolean }) {
 function ShellSubmessage(props: { text: string; animate?: boolean }) {