mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Merge pull request #29 from gatapia/patch-1
It is possible for image tags not to have a 'src' (or background-image) ...
This commit is contained in:
commit
74c7373362
@ -250,7 +250,10 @@ html2canvas.Preload = function(element, opts){
|
||||
|
||||
// load <img> images
|
||||
for (i = 0; i < imgLen; i+=1){
|
||||
methods.loadImage( domImages[i].getAttribute( "src" ) );
|
||||
var imgSrc = domImages[i].getAttribute( "src" );
|
||||
if ( imgSrc ) {
|
||||
methods.loadImage( imgSrc );
|
||||
}
|
||||
}
|
||||
|
||||
// remove 'start'
|
||||
|
Loading…
Reference in New Issue
Block a user