There was an error while loading. Please reload this page.
1 parent 1c44b94 commit 7145d93Copy full SHA for 7145d93
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