1 parent 4dcdfe8 commit 3282b0aCopy full SHA for 3282b0a
1 file changed
npmjs.com/index.js
@@ -13,7 +13,7 @@ const listItem = (text, href) => {
13
};
14
15
if (repos) {
16
- const pkg = document.querySelector("main h2 span").textContent;
+ const pkg = document.title.substring(0, document.title.length - 6);
17
18
const sites = [
19
["Bundlephobia", `https://bundlephobia.com/package/${pkg}`],
0 commit comments