mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-10 09:24:49 +00:00
add basic support for <img src=___.svg>
This commit is contained in:
parent
947c5613f7
commit
e7aab8cd00
2 changed files with 9 additions and 1 deletions
|
@ -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 '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue