mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 10:47:59 +08:00
Merge branch 'spidgorny-master' into master
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user