move 3rd party libs to /libs folder

This commit is contained in:
Alex Adam 2020-06-18 16:04:00 +03:00
parent 1d40954594
commit ab229d926e
9 changed files with 5 additions and 3 deletions

View file

@ -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": {

View file

@ -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, {