Skip to content

Commit c842b45

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

npmjs.com/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ 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 = [
1819
["Bundlephobia", `https://bundlephobia.com/package/${pkg}`],
1920
["anvaka", `https://npm.anvaka.com/#/view/2d/${pkg}`],

0 commit comments

Comments
 (0)