Skip to content

Commit b1f3e3d

Browse files
committed
npmjs: reflect new package name dom
1 parent 32d6b72 commit b1f3e3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

npmjs.com/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ const listItem = (text, href) => {
1313
};
1414

1515
if (repos) {
16-
const pkg = document.querySelector("#top h1 span").textContent;
16+
const pkg = document.querySelector("main h2 span").textContent;
17+
1718
const sites = [
19+
1820
["Bundlephobia", `https://bundlephobia.com/package/${pkg}`],
1921
["anvaka", `https://npm.anvaka.com/#/view/2d/${pkg}`],
2022
["npmgraph", `https://npmgraph.js.org/?q=${pkg}`],

0 commit comments

Comments
 (0)