Merge pull request #119 from lhw/patch-1
Add SVG image detection based on file extension
This commit is contained in:
commit
118314d8dd
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ exports.getImageMimeType = function getImageMimeType (imagePath) {
|
||||||
return 'image/png'
|
return 'image/png'
|
||||||
case 'tiff':
|
case 'tiff':
|
||||||
return 'image/tiff'
|
return 'image/tiff'
|
||||||
|
case 'svg':
|
||||||
|
return 'image/svg+xml'
|
||||||
default:
|
default:
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue