From c4fba7b3fef6e8548d188dae03fb2ad5fcc7278e Mon Sep 17 00:00:00 2001 From: Slawa Pidgorny Date: Wed, 24 Mar 2021 07:31:10 +0100 Subject: [PATCH] var imageObj = Util.createImageElement(); --- src/Util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util.ts b/src/Util.ts index 6a5cba62..2978fcba 100644 --- a/src/Util.ts +++ b/src/Util.ts @@ -666,7 +666,7 @@ export const Util = { */ _urlToImage(url: string, callback: Function) { // if arg is a string, then it's a data url - var imageObj = new glob.Image(); + var imageObj = Util.createImageElement(); imageObj.onload = function () { callback(imageObj); };