mirror of
https://github.com/vale981/practical-cl-beautified
synced 2025-03-04 09:11:37 -05:00
bump version, add release
This commit is contained in:
parent
ad1d7662e3
commit
d8127607bf
5 changed files with 20 additions and 7 deletions
3
.web-extension-id
Normal file
3
.web-extension-id
Normal file
|
@ -0,0 +1,3 @@
|
|||
# This file was created by https://github.com/mozilla/web-ext
|
||||
# Your auto-generated extension ID for addons.mozilla.org is:
|
||||
{dc4e3b3d-bbb2-4dee-be69-752b75e9e425}
|
|
@ -24,13 +24,12 @@ function fetchChapters() {
|
|||
});});
|
||||
}
|
||||
|
||||
function handleMessage(message, sender, respond) {
|
||||
function handleMessage(message, sender) {
|
||||
if (message.msg == "getChapters") {
|
||||
fetchChapters().then(chapters => respond(chapters)).catch(() => {
|
||||
respond();
|
||||
});
|
||||
return true;
|
||||
return fetchChapters();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
browser.runtime.onMessage.addListener(handleMessage);
|
||||
|
|
|
@ -163,6 +163,7 @@ function linkFootnotes() {
|
|||
|
||||
// Let's apply that stuff.
|
||||
loadChapters().then(newChapters => {
|
||||
console.log(newChapters);
|
||||
chapters = newChapters;
|
||||
setUpNumbering();
|
||||
});
|
||||
|
|
9
js/webpoly.js
Normal file
9
js/webpoly.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"manifest_version": 2,
|
||||
"name": "Beautify Practical Common Lisp",
|
||||
"version": "1.5",
|
||||
"version": "1.5.1",
|
||||
|
||||
"description": "Adds a simple table of contents and syntax highlighting to the web version of Practical Common Lisp by Peter Seibel.",
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
|||
|
||||
"background": {
|
||||
"scripts": [
|
||||
"./js/webpoly.js",
|
||||
"./js/background.js"
|
||||
]
|
||||
},
|
||||
|
@ -19,7 +20,7 @@
|
|||
"content_scripts": [
|
||||
{
|
||||
"matches": ["*://*.gigamonkeys.com/book/*.html"],
|
||||
"js": ["./js/highlight-lisp.js", "./js/tocbot.js","./js/tippy.js","./js/main.js"],
|
||||
"js": ["./js/webpoly.js", "./js/highlight-lisp.js", "./js/tocbot.js","./js/tippy.js","./js/main.js"],
|
||||
"css": ["./css/highlight-style.css"]
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue