mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix for -moz gradient backgrounds
This commit is contained in:
parent
d198f45d87
commit
22c004342a
@ -160,7 +160,8 @@ function html2canvas(el,userOptions) {
|
|||||||
|
|
||||||
if (el.nodeType==1 || typeof el.nodeType == "undefined"){
|
if (el.nodeType==1 || typeof el.nodeType == "undefined"){
|
||||||
var background_image = getCSS(el,'background-image');
|
var background_image = getCSS(el,'background-image');
|
||||||
if (background_image && background_image != "1" && background_image != "none" && background_image.substring(0,7)!="-webkit"){
|
|
||||||
|
if (background_image && background_image != "1" && background_image != "none" && background_image.substring(0,7)!="-webkit" && background_image.substring(0,4)!="-moz"){
|
||||||
var src = backgroundImageUrl(background_image);
|
var src = backgroundImageUrl(background_image);
|
||||||
preloadImage(src);
|
preloadImage(src);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user