mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-26 15:15:58 +00:00
Search websites supports conenct directory matching
This commit is contained in:
@@ -209,7 +209,8 @@ $(document).on('input change keyup keypress keydown paste cut', '.search', funct
|
||||
// show apps that match search_query and hide apps that don't
|
||||
websites.forEach((website) => {
|
||||
if (
|
||||
website.subdomain.toLowerCase().includes(search_query.toLowerCase())
|
||||
website.subdomain.toLowerCase().includes(search_query.toLowerCase()) ||
|
||||
website.root_dir?.name?.toLowerCase().includes(search_query.toLowerCase())
|
||||
)
|
||||
{
|
||||
$(`.website-card[data-name="${website.subdomain}"]`).show();
|
||||
|
||||
Reference in New Issue
Block a user