We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dcdfe8 commit 3282b0aCopy full SHA for 3282b0a
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