diff --git a/npmjs.com/index.js b/npmjs.com/index.js index 7551363..90d511b 100644 --- a/npmjs.com/index.js +++ b/npmjs.com/index.js @@ -13,7 +13,8 @@ const listItem = (text, href) => { }; if (repos) { - const pkg = document.querySelector("#top h1 span").textContent; + const pkg = document.querySelector("main h2 span").textContent; + const sites = [ ["Bundlephobia", `https://bundlephobia.com/package/${pkg}`], ["anvaka", `https://npm.anvaka.com/#/view/2d/${pkg}`],