fix(MdSvgLoader): svg loader for invalid / missing mimetype (
#1942)
1 parent 4b4d0ab commit 4fa84a4File tree Expand file treeCollapse file tree 1 file changedCopy full SHA for 4fa84a4
+1
-0
lines changedFilter options
+1
-0
lines changed +1Lines changed: 1 addition & 0 deletions Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@
25
25
},
26
26
methods: {
27
27
isSVG (mimetype) {
28
+
if (typeof mimetype !== 'string') return false;
28
29
return mimetype.indexOf('svg') >= 0
29
30
},
30
31
setHtml (value) {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4