diff --git a/src/dom/document-cloner.ts b/src/dom/document-cloner.ts index 08faa29..a246fc7 100644 --- a/src/dom/document-cloner.ts +++ b/src/dom/document-cloner.ts @@ -220,7 +220,7 @@ export class DocumentCloner { clonedCanvas.width = canvas.width; clonedCanvas.height = canvas.height; const ctx = canvas.getContext('2d'); - const clonedCtx = clonedCanvas.getContext('2d'); + const clonedCtx = clonedCanvas.getContext('2d', { willReadFrequently: true }); if (clonedCtx) { if (!this.options.allowTaint && ctx) { clonedCtx.putImageData(ctx.getImageData(0, 0, canvas.width, canvas.height), 0, 0);