mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
missing braces
This commit is contained in:
parent
5492d80135
commit
dc21fab450
@ -833,8 +833,9 @@ _html2canvas.Parse = function (images, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function resizeImage(image, bounds) {
|
function resizeImage(image, bounds) {
|
||||||
if(image.width === bounds.width && image.height === bounds.height)
|
if(image.width === bounds.width && image.height === bounds.height) {
|
||||||
return image;
|
return image;
|
||||||
|
}
|
||||||
|
|
||||||
var ctx, canvas = doc.createElement('canvas');
|
var ctx, canvas = doc.createElement('canvas');
|
||||||
canvas.width = bounds.width;
|
canvas.width = bounds.width;
|
||||||
|
Loading…
Reference in New Issue
Block a user