Explorar el Código

chore: generate

opencode-agent[bot] hace 3 meses
padre
commit
7afd477d1a
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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
   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 }) {