var imageObj = Util.createImageElement();

This commit is contained in:
Slawa Pidgorny 2021-03-24 07:31:10 +01:00 committed by GitHub
parent 597e3d5eb7
commit c4fba7b3fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
};