Skip to content

Commit

Permalink
gradient check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh committed Mar 4, 2012
1 parent 7a3ca77 commit 8a5b09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Preload.js
Expand Up @@ -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 ) );
Expand Down

0 comments on commit 8a5b09b

Please sign in to comment.