mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-10 17:34:47 +00:00
misc bug fixes
This commit is contained in:
parent
bc8dfab9b3
commit
9237935f69
6 changed files with 105 additions and 34 deletions
|
@ -91,6 +91,13 @@ function checkIfBusy(callback) {
|
|||
});
|
||||
}
|
||||
|
||||
function setIsBusy(isBusy) {
|
||||
chrome.runtime.sendMessage({
|
||||
type: "set is busy",
|
||||
isBusy: isBusy
|
||||
}, function(response) {});
|
||||
}
|
||||
|
||||
/////
|
||||
function getCurrentUrl() {
|
||||
var url = window.location.href;
|
||||
|
@ -261,6 +268,8 @@ function getBase64ImgData(srcTxt) {
|
|||
}
|
||||
|
||||
function getXPath(elm) {
|
||||
if (!elm) return ''
|
||||
|
||||
var allNodes = document.getElementsByTagName('*');
|
||||
for (var segs = []; elm && elm.nodeType === 1; elm = elm.parentNode) {
|
||||
if (elm.hasAttribute('id')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue