Skip to content

Commit 412ad41

Browse files
committed
Merge branch 'haprod'
2 parents f9218e1 + 6581c6c commit 412ad41

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

internal/support/Wappalyzer/wappalyzer.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,15 @@ const Wappalyzer = {
8989
.flat(),
9090
].find(({ name: _name }) => name === _name),
9191

92-
getCategory: (id) => Wappalyzer.categories.find(({ id: _id }) => id === _id),
93-
92+
getCategory: (id) => {
93+
for (const category of Wappalyzer.categories) {
94+
if (category.id == id) {
95+
return category;
96+
}
97+
}
98+
return null;
99+
},
100+
94101
/**
95102
* Resolve promises for implied technology.
96103
* @param {Array} detections

0 commit comments

Comments
 (0)