add support for inline SVG

This commit is contained in:
alexadam 2016-09-12 10:57:35 +03:00
parent 586173d87f
commit f046e72253
2 changed files with 13 additions and 1 deletions

View file

@ -53,6 +53,8 @@ function getFileExtension(fileName) {
tmpFileName = tmpFileName.toLowerCase();
if (tmpFileName === 'jpg') {
tmpFileName = 'jpeg';
} else if (tmpFileName === 'svg+xml') {
tmpFileName = 'svg';
} else if (tmpFileName.trim() === '') {
tmpFileName = '';
}