Skip to content

Commit

Permalink
npmjs: reflect new package name dom
Browse files Browse the repository at this point in the history
  • Loading branch information
avindra committed Oct 24, 2024
1 parent 32d6b72 commit c842b45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion npmjs.com/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`],
Expand Down

0 comments on commit c842b45

Please sign in to comment.