fix: match non-html extension too

This commit is contained in:
Valentin Boettcher 2024-03-02 15:34:39 -05:00
parent 58bd94cf43
commit e67ef05a0d
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE

View file

@ -6,29 +6,29 @@
"description": "Adds a simple table of contents and syntax highlighting to the web version of Practical Common Lisp by Peter Seibel.", "description": "Adds a simple table of contents and syntax highlighting to the web version of Practical Common Lisp by Peter Seibel.",
"icons": { "icons": {
"48": "./icon/icon.svg", "48": "./icon/icon.svg",
"96": "./icon/icon.svg" "96": "./icon/icon.svg"
}, },
"background": { "background": {
"scripts": [ "scripts": [
"./js/webpoly.js", "./js/webpoly.js",
"./js/background.js" "./js/background.js"
] ]
}, },
"content_scripts": [ "content_scripts": [
{ {
"matches": ["*://*.gigamonkeys.com/book/*.html"], "matches": ["*://*.gigamonkeys.com/book/*.html", "*://*.gigamonkeys.com/book/*"],
"exclude_matches": ["*://*.gigamonkeys.com/book/index.html"], "exclude_matches": ["*://*.gigamonkeys.com/book/index.html", "*://*.gigamonkeys.com/book/index"],
"js": ["./js/webpoly.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"] "css": ["./css/highlight-style.css"]
} }
], ],
"permissions": [ "permissions": [
"*://*.gigamonkeys.com/book/*", "*://*.gigamonkeys.com/book/*",
"webRequest", "webRequest",
"storage" "storage"
] ]
} }