Skip to content

Commit 5c3513f

Browse files
committed
npm: optimize sidebar pruner
1 parent 58aca08 commit 5c3513f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

npmjs.com/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if (sidebar) {
8181
"https://socket.dev/npm/package",
8282
"https://snyk.io/advisor/npm-package",
8383
]) {
84-
const link = document.querySelector(`[href^="${base}"]`);
84+
const link = sidebar.querySelector(`[href^="${base}"]`);
8585
if (link) {
8686
link.remove();
8787
}

0 commit comments

Comments
 (0)