add svg image preview support (#6551)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
0b5e310881
commit
ba9f74b248
|
@ -133,7 +133,8 @@ export default function HttpMessage({ flow, message }: HttpMessageProps) {
|
|||
}
|
||||
}
|
||||
|
||||
const isImage = /^image\/(png|jpe?g|gif|webp|vnc.microsoft.icon|x-icon)$/i;
|
||||
const isImage =
|
||||
/^image\/(png|jpe?g|gif|webp|vnc.microsoft.icon|x-icon|svg\+xml)$/i;
|
||||
ViewImage.matches = (msg) =>
|
||||
isImage.test(MessageUtils.getContentType(msg) || "");
|
||||
|
||||
|
|
Loading…
Reference in New Issue