mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
"small bugfix"
This commit is contained in:
parent
e479c952f7
commit
ae8d499942
@ -115,7 +115,7 @@ _html2canvas.Generate.Gradient = function(src, bounds) {
|
||||
|
||||
img = new Image();
|
||||
|
||||
if(gradient){
|
||||
if(gradient && gradient.type === 'linear'){
|
||||
lingrad = ctx.createLinearGradient(gradient.x0, gradient.y0, gradient.x1, gradient.y1);
|
||||
|
||||
for (i = 0, len = gradient.colorStops.length; i < len; i+=1) {
|
||||
|
Loading…
Reference in New Issue
Block a user