mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fallback to DummyImageContainer if no suitable ImageContainer found
This commit is contained in:
parent
9ee87339a3
commit
d6ed6c0194
@ -47,6 +47,8 @@ ImageLoader.prototype.loadImage = function(imageData) {
|
||||
return new LinearGradientContainer(imageData);
|
||||
} else if (imageData.method === "gradient") {
|
||||
return new WebkitGradientContainer(imageData);
|
||||
} else {
|
||||
return new DummyImageContainer(imageData);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user