Skip to content

Commit 4fa84a4

Browse files
GPlay97Samuell1
authored andcommitted
fix(MdSvgLoader): svg loader for invalid / missing mimetype (#1942)
1 parent 4b4d0ab commit 4fa84a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/MdSvgLoader/MdSvgLoader.vue

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
methods: {
2727
isSVG (mimetype) {
28+
if (typeof mimetype !== 'string') return false;
2829
return mimetype.indexOf('svg') >= 0
2930
},
3031
setHtml (value) {

0 commit comments

Comments
 (0)