This commit is contained in:
Nariman Jelveh 2024-10-08 19:51:57 -07:00
parent d0940ccd21
commit 9890e3a8be

View File

@ -1995,7 +1995,13 @@ $(document).on('input change keyup keypress keydown paste cut', '.search', funct
$('.search-clear').show(); $('.search-clear').show();
// show apps that match search_query and hide apps that don't // show apps that match search_query and hide apps that don't
apps.forEach((app) => { apps.forEach((app) => {
if (app.title.toLowerCase().includes(search_query.toLowerCase())) { if (
app.title.toLowerCase().includes(search_query.toLowerCase())
|| app.name.toLowerCase().includes(search_query.toLowerCase())
|| app.description.toLowerCase().includes(search_query.toLowerCase())
|| app.uid.toLowerCase().includes(search_query.toLowerCase())
)
{
$(`.app-card[data-name="${app.name}"]`).show(); $(`.app-card[data-name="${app.name}"]`).show();
} else { } else {
$(`.app-card[data-name="${app.name}"]`).hide(); $(`.app-card[data-name="${app.name}"]`).hide();