Skip to content

Commit

Permalink
iOS fix
Browse files Browse the repository at this point in the history
Fix #420
  • Loading branch information
getCryptoAddress authored Aug 7, 2023
1 parent 9083028 commit 1d452e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export async function toCanvas<T extends HTMLElement>(

context.drawImage(img, 0, 0, canvas.width, canvas.height)

await new Promise(resolve => setTimeout(resolve, 0)); // iOS fix
return canvas
}

Expand Down

0 comments on commit 1d452e0

Please sign in to comment.