Skip to content

Commit 787ab69

Browse files
authored
Search extension now checks extension description
1 parent 266cd44 commit 787ab69

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎docs/script.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ function setupSearch() {
6767
ext.name.toLowerCase().includes(q)
6868
)
6969

70+
if(!filteredData.length) {
71+
filteredData = listData.filter(ext =>
72+
ext.description.toLowerCase().includes(q)
73+
)
74+
}
75+
7076
renderExtensions()
7177
})
7278
}

0 commit comments

Comments
 (0)