mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
img attrs if img
This commit is contained in:
@ -137,13 +137,6 @@ export class Cache {
|
|||||||
}
|
}
|
||||||
img.src = src;
|
img.src = src;
|
||||||
}
|
}
|
||||||
img.crossOrigin = 'anonymous';
|
|
||||||
img.setAttribute('crossOrigin', 'anonymous');
|
|
||||||
if (hasParamsRegex.test(src)) {
|
|
||||||
src = src +'&v='+timeStamp;
|
|
||||||
} else {
|
|
||||||
src = src +'?v='+timeStamp;
|
|
||||||
}
|
|
||||||
img.src = src;
|
img.src = src;
|
||||||
if (img.complete === true) {
|
if (img.complete === true) {
|
||||||
// Inline XML images may fail to parse, throwing an Error later on
|
// Inline XML images may fail to parse, throwing an Error later on
|
||||||
|
Reference in New Issue
Block a user