mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 05:14:44 +00:00
chore: generate
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user