mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-09 08:54:40 +00:00
add support for inline SVG
This commit is contained in:
parent
586173d87f
commit
f046e72253
2 changed files with 13 additions and 1 deletions
|
@ -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 = '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue