mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-10 17:34:47 +00:00
move 3rd party libs to /libs folder
This commit is contained in:
parent
1d40954594
commit
ab229d926e
9 changed files with 5 additions and 3 deletions
|
@ -11,7 +11,8 @@
|
||||||
},
|
},
|
||||||
"content_scripts": [{
|
"content_scripts": [{
|
||||||
"matches": ["<all_urls>"],
|
"matches": ["<all_urls>"],
|
||||||
"js": ["jquery.js", "jszip.js", "jszip-utils.js", "pure-parser.js", "cssjson.js", "filesaver.js",
|
"js": ["./libs/jquery.js", "./libs/jszip.js", "./libs/jszip-utils.js",
|
||||||
|
"./libs/pure-parser.js", "./libs/cssjson.js", "./libs/filesaver.js",
|
||||||
"saveEbook.js", "extractHtml.js", "utils.js"]
|
"saveEbook.js", "extractHtml.js", "utils.js"]
|
||||||
}],
|
}],
|
||||||
"background": {
|
"background": {
|
||||||
|
|
|
@ -131,7 +131,7 @@ document.getElementById("editStyles").onclick = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
document.getElementById("editChapters").onclick = function() {
|
document.getElementById("editChapters").onclick = function() {
|
||||||
|
|
||||||
if (document.getElementById('chapterEditor-Modal')) {
|
if (document.getElementById('chapterEditor-Modal')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,8 @@ document.getElementById("editChapters").onclick = function() {
|
||||||
active: true
|
active: true
|
||||||
}, function(tab) {
|
}, function(tab) {
|
||||||
|
|
||||||
chrome.tabs.executeScript(tab[0].id, {file: '/jquery-sortable.js'});
|
chrome.tabs.executeScript(tab[0].id, {file: './libs/jquery.js'});
|
||||||
|
chrome.tabs.executeScript(tab[0].id, {file: './libs/jquery-sortable.js'});
|
||||||
chrome.tabs.insertCSS(tab[0].id, {file: '/chapterEditor.css'});
|
chrome.tabs.insertCSS(tab[0].id, {file: '/chapterEditor.css'});
|
||||||
|
|
||||||
chrome.tabs.executeScript(tab[0].id, {
|
chrome.tabs.executeScript(tab[0].id, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue