We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb0877d commit 58aca08Copy full SHA for 58aca08
1 file changed
npmjs.com/index.js
@@ -75,15 +75,13 @@ function main() {
75
}
76
77
if (sidebar) {
78
- const checkers = [
+ for (const base of [
79
"https://bundlephobia.com/",
80
"https://npmgraph.js.org/",
81
"https://socket.dev/npm/package",
82
"https://snyk.io/advisor/npm-package",
83
- ];
84
-
85
- for (const checker of checkers) {
86
- const link = document.querySelector(`[href^="${checker}"]`);
+ ]) {
+ const link = document.querySelector(`[href^="${base}"]`);
87
if (link) {
88
link.remove();
89
0 commit comments