There was an error while loading. Please reload this page.
2 parents 1c44b94 + 7145d93 commit 07c0c13Copy full SHA for 07c0c13
1 file changed
src/Images.js
@@ -50,7 +50,15 @@ html2canvas.prototype.preloadImage = function(src){
50
51
52
if (this.getIndex(this.images,src)==-1){
53
- if (this.isSameOrigin(src)){
+ if(src.substr(0, 5) == 'data:'){
54
+ //Base64 src
55
+ this.images.push(src);
56
+ var img = new Image();
57
+ img.src = src;
58
+ this.images.push(img);
59
+ this.imagesLoaded++;
60
+ this.start();
61
+ }else if (this.isSameOrigin(src)){
62
this.images.push(src);
63
// console.log('a'+src);
64
var img = new Image();
0 commit comments