chore: generate
This commit is contained in:
@@ -467,7 +467,8 @@ export function Session() {
|
||||
},
|
||||
run: async () => {
|
||||
const copy = (url: string) =>
|
||||
clipboard.write?.(url)
|
||||
clipboard
|
||||
.write?.(url)
|
||||
.then(() => toast.show({ message: "Share URL copied to clipboard!", variant: "success" }))
|
||||
.catch(() => toast.show({ message: "Failed to copy URL to clipboard", variant: "error" }))
|
||||
const url = session()?.share?.url
|
||||
@@ -902,7 +903,8 @@ export function Session() {
|
||||
return
|
||||
}
|
||||
|
||||
clipboard.write?.(text)
|
||||
clipboard
|
||||
.write?.(text)
|
||||
.then(() => toast.show({ message: "Message copied to clipboard!", variant: "success" }))
|
||||
.catch(() => toast.show({ message: "Failed to copy to clipboard", variant: "error" }))
|
||||
dialog.clear()
|
||||
|
||||
Reference in New Issue
Block a user