mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix svg matching performance issue
This commit is contained in:
parent
1793b802b1
commit
6ece2a3d5a
2
dist/html2canvas.js
vendored
2
dist/html2canvas.js
vendored
@ -1029,7 +1029,7 @@ ImageLoader.prototype.loadImage = function(imageData) {
|
||||
};
|
||||
|
||||
ImageLoader.prototype.isSVG = function(src) {
|
||||
return (/(.+).svg$/i.test(src)) || SVGContainer.prototype.isInline(src);
|
||||
return src.substring(src.length - 3).toLowerCase() === "svg" || SVGContainer.prototype.isInline(src);
|
||||
};
|
||||
|
||||
ImageLoader.prototype.imageExists = function(images, src) {
|
||||
|
2
dist/html2canvas.min.js
vendored
2
dist/html2canvas.min.js
vendored
File diff suppressed because one or more lines are too long
@ -76,7 +76,7 @@ ImageLoader.prototype.loadImage = function(imageData) {
|
||||
};
|
||||
|
||||
ImageLoader.prototype.isSVG = function(src) {
|
||||
return (/(.+).svg$/i.test(src)) || SVGContainer.prototype.isInline(src);
|
||||
return src.substring(src.length - 3).toLowerCase() === "svg" || SVGContainer.prototype.isInline(src);
|
||||
};
|
||||
|
||||
ImageLoader.prototype.imageExists = function(images, src) {
|
||||
|
Loading…
Reference in New Issue
Block a user