There was an error while loading. Please reload this page.
1 parent 4105374 commit 8ddf10fCopy full SHA for 8ddf10f
1 file changed
src/renderers/Canvas.js
@@ -55,7 +55,7 @@ _html2canvas.Renderer.Canvas = function(options) {
55
createShape(ctx, item['arguments']);
56
} else if (item.name === "drawImage") {
57
if (item['arguments'][8] > 0 && item['arguments'][7] > 0) {
58
- if (options.taintTest || (options.taintTest && safeImage(item))) {
+ if (!options.taintTest || (options.taintTest && safeImage(item))) {
59
ctx.drawImage.apply( ctx, item['arguments'] );
60
}
61
0 commit comments