bump version, add release

This commit is contained in:
Valentin Boettcher 2019-06-26 11:22:25 +02:00
parent ad1d7662e3
commit d8127607bf
5 changed files with 20 additions and 7 deletions

3
.web-extension-id Normal file
View 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}

View file

@ -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);

View file

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

File diff suppressed because one or more lines are too long

View file

@ -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"]
}
],