mirror of https://github.com/status-im/codimd.git
Fix getImageMimeType mime usage
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
This commit is contained in:
parent
c9e23985d3
commit
de0f4588ac
|
@ -9,7 +9,7 @@ exports.isSQLite = function isSQLite (sequelize) {
|
|||
}
|
||||
|
||||
exports.getImageMimeType = function getImageMimeType (imagePath) {
|
||||
return mime.contentType(path.extname(imagePath))
|
||||
return mime.lookup(path.extname(imagePath))
|
||||
}
|
||||
|
||||
exports.isRevealTheme = function isRevealTheme (theme) {
|
||||
|
|
Loading…
Reference in New Issue