Merge pull request #11 from oleksiy-nesterov/master

Base 64
This commit is contained in:
Niklas von Hertzen 2011-09-05 09:41:43 -07:00
commit 07c0c13cc1

View File

@ -50,7 +50,15 @@ html2canvas.prototype.preloadImage = function(src){
if (this.getIndex(this.images,src)==-1){
if (this.isSameOrigin(src)){
if(src.substr(0, 5) == 'data:'){
//Base64 src
this.images.push(src);
var img = new Image();
img.src = src;
this.images.push(img);
this.imagesLoaded++;
this.start();
}else if (this.isSameOrigin(src)){
this.images.push(src);
// console.log('a'+src);
var img = new Image();