gradient check fix

This commit is contained in:
Niklas von Hertzen 2012-03-04 21:20:22 +02:00
parent 7a3ca77471
commit 8a5b09be70

View File

@ -144,7 +144,7 @@ _html2canvas.Preload = function( options ) {
// TODO add multi image background support
if (!/^(-webkit|-o|-moz|-ms|linear)-/.test( src )) {
if (/^(-webkit|-o|-moz|-ms|linear)-/.test( background_image )) {
// if (background_image.substring(0,7) === "-webkit" || background_image.substring(0,3) === "-o-" || background_image.substring(0,4) === "-moz") {
img = _html2canvas.Generate.Gradient( background_image, _html2canvas.Util.Bounds( el ) );