mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-11 09:54:41 +00:00
misc fixes
This commit is contained in:
parent
782e96340e
commit
917d8da78c
2 changed files with 2 additions and 2 deletions
|
@ -328,7 +328,7 @@ function extractCss(appliedStyles, callback) {
|
||||||
if (!classNames) {
|
if (!classNames) {
|
||||||
classNames = pre.getAttribute('id');
|
classNames = pre.getAttribute('id');
|
||||||
if (!classNames) {
|
if (!classNames) {
|
||||||
classNames = pre.tagName;
|
classNames = pre.tagName + '-' + Math.floor(Math.random()*100000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var tmpName = cssClassesToTmpIds[classNames];
|
var tmpName = cssClassesToTmpIds[classNames];
|
||||||
|
|
|
@ -188,7 +188,7 @@ function getAbsoluteUrl(urlStr) {
|
||||||
|
|
||||||
function removeEndingSlash(inputStr) {
|
function removeEndingSlash(inputStr) {
|
||||||
if (inputStr.endsWith('/')) {
|
if (inputStr.endsWith('/')) {
|
||||||
return inputStr.substring(0, inputStr.length - 2);
|
return inputStr.substring(0, inputStr.length - 1);
|
||||||
}
|
}
|
||||||
return inputStr;
|
return inputStr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue