Permalink
Browse files

gradient check fix

  • Loading branch information...
niklasvh committed Mar 4, 2012
1 parent 7a3ca77 commit 8a5b09be70c986738b1e5bd6703f6a587dd8b089
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Preload.js
View
@@ -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 ) );

0 comments on commit 8a5b09b

Please sign in to comment.