mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Correct SVG regexp
This commit is contained in:
parent
d07e440127
commit
313bd4e4c6
@ -8,7 +8,7 @@ export class ImageElementContainer extends ElementContainer {
|
|||||||
intrinsicHeight: number = 0;
|
intrinsicHeight: number = 0;
|
||||||
isSVG: boolean;
|
isSVG: boolean;
|
||||||
|
|
||||||
private static SVG = /\.svg$/i;
|
private static SVG = /\.svg(?:\?.*)?$/i;
|
||||||
private static INLINED_SVG = /^data:image\/svg\+xml/i;
|
private static INLINED_SVG = /^data:image\/svg\+xml/i;
|
||||||
private static IS_FIRE_FOX = /firefox/i.test(navigator?.userAgent);
|
private static IS_FIRE_FOX = /firefox/i.test(navigator?.userAgent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user