Skip to content

Commit

Permalink
fix(MdSvgLoader): svg loader for invalid / missing mimetype (#1942)
Browse files Browse the repository at this point in the history
  • Loading branch information
GPlay97 authored and Samuell1 committed Dec 18, 2018
1 parent 4b4d0ab commit 4fa84a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/MdSvgLoader/MdSvgLoader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
methods: {
isSVG (mimetype) {
if (typeof mimetype !== 'string') return false;
return mimetype.indexOf('svg') >= 0
},
setHtml (value) {
Expand Down

0 comments on commit 4fa84a4

Please sign in to comment.