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
48e9b881b1
commit
7940062240
@ -47,6 +47,8 @@ ImageLoader.prototype.loadImage = function(imageData) {
|
|||||||
return new LinearGradientContainer(imageData);
|
return new LinearGradientContainer(imageData);
|
||||||
} else if (imageData.method === "gradient") {
|
} else if (imageData.method === "gradient") {
|
||||||
return new WebkitGradientContainer(imageData);
|
return new WebkitGradientContainer(imageData);
|
||||||
|
} else {
|
||||||
|
return new DummyImageContainer(imageData);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user