diff --git a/lib/image/index.js b/lib/image/index.js index 130f7b0..441fca9 100644 --- a/lib/image/index.js +++ b/lib/image/index.js @@ -26,7 +26,7 @@ export function getLoader(resource) { return loadUrl; } - if (resource instanceof Image) { + if (Object.prototype.toString.call(resource) == '[object HTMLImageElement]') { return identity; }