add basic support for <img src=___.svg>

This commit is contained in:
alexadam 2016-09-07 12:01:59 +03:00
parent 947c5613f7
commit e7aab8cd00
2 changed files with 9 additions and 1 deletions

View file

@ -63,6 +63,14 @@ function getFileExtension(fileName) {
}
}
function getImageType(fileName) {
var imageType = getFileExtension(fileName);
if (imageType === 'svg') {
imageType = 'svg+xml';
}
return imageType;
}
function getHref(hrefTxt) {
if (!hrefTxt) {
return '';