leap: return 'other' first, lowercase groups

This commit is contained in:
Matilde Park 2020-10-23 17:16:16 -04:00
parent ae5561ee61
commit 83bfc22450

View File

@ -55,7 +55,7 @@ export class Omnibox extends Component {
}
getSearchedCategories() {
return ['commands', 'groups', 'subscriptions', 'apps', 'other'];
return ['other', 'commands', 'groups', 'subscriptions', 'apps'];
}
control(evt) {
@ -154,7 +154,7 @@ export class Omnibox extends Component {
result.title.toLowerCase().includes(query) ||
result.link.toLowerCase().includes(query) ||
result.app.toLowerCase().includes(query) ||
(result.host !== null ? result.host.includes(query) : false)
(result.host !== null ? result.host.toLowerCase().includes(query) : false)
);
})
);