From aca527a9afb217a78351ced1b790c776ebd6a17c Mon Sep 17 00:00:00 2001 From: HitenChawda46 Date: Sun, 3 Jul 2022 05:08:12 +0530 Subject: [PATCH] fix: Operation is insecure on safari (#2688) --- src/render/canvas/canvas-renderer.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/render/canvas/canvas-renderer.ts b/src/render/canvas/canvas-renderer.ts index 6efb648..d0080ba 100644 --- a/src/render/canvas/canvas-renderer.ts +++ b/src/render/canvas/canvas-renderer.ts @@ -569,9 +569,10 @@ export class CanvasRenderer extends Renderer { } resizeImage(image: HTMLImageElement, width: number, height: number): HTMLCanvasElement | HTMLImageElement { - if (image.width === width && image.height === height) { - return image; - } + + // if (image.width === width && image.height === height) { + // return image; + // } const ownerDocument = this.canvas.ownerDocument ?? document; const canvas = ownerDocument.createElement('canvas');