From 8a5b09be70c986738b1e5bd6703f6a587dd8b089 Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Sun, 4 Mar 2012 21:20:22 +0200 Subject: [PATCH] gradient check fix --- src/Preload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Preload.js b/src/Preload.js index 563005f..93723bd 100644 --- a/src/Preload.js +++ b/src/Preload.js @@ -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 ) );