mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
gradient check fix
This commit is contained in:
parent
7a3ca77471
commit
8a5b09be70
@ -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 ) );
|
||||
|
Loading…
Reference in New Issue
Block a user