Skip to content

Commit

Permalink
Merge pull request #250 from satrong/fix-041013
Browse files Browse the repository at this point in the history
fix: remove the permission check
  • Loading branch information
sugarforever authored Apr 10, 2024
2 parents 3d53cf6 + e44cad0 commit 9f58451
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions components/ChatMessageActionMore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const emits = defineEmits<{
}>()
const { copy, isSupported } = useClipboard({ legacy: true })
const permissionWrite = usePermission('clipboard-write')
const toast = useToast()
const buttons = [
Expand All @@ -22,10 +21,6 @@ const buttons = [
icon: 'i-material-symbols-content-copy-outline',
click: (e: MouseEvent) => {
(e.currentTarget as any)?.focus()
if (permissionWrite.value === 'denied') {
toast.add({ title: 'Permission denied', color: 'red' })
return
}
if (isSupported.value) {
copy(props.message.content)
} else {
Expand Down

0 comments on commit 9f58451

Please sign in to comment.