Skip to content

Commit

Permalink
log error
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 2, 2025
1 parent af9aa53 commit 4b9004e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/app/lib/copy-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async function copyImageForSafari(dataUrl: string) {
try {
await navigator.clipboard.write([new ClipboardItem({ 'image/png': blob })])
} catch (error) {
console.error(error)
fallbackCopyImage(canvas)
}
} else {
Expand Down

0 comments on commit 4b9004e

Please sign in to comment.