mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-10 09:24:49 +00:00
misc bug fixes: links without href; imgages without src
This commit is contained in:
parent
a9624b8df9
commit
523c314374
2 changed files with 24 additions and 5 deletions
|
@ -67,6 +67,10 @@ function getHref(hrefTxt) {
|
|||
if (!hrefTxt) {
|
||||
return '';
|
||||
}
|
||||
hrefTxt = hrefTxt.trim();
|
||||
if (hrefTxt === '') {
|
||||
return '';
|
||||
}
|
||||
if (hrefTxt.indexOf('#') === 0) {
|
||||
hrefTxt = window.location.href + hrefTxt;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue