NavigateUseCase TabPresenter
This commit is contained in:
parent
45a10d93c7
commit
03370301a7
2 changed files with 5 additions and 3 deletions
|
@ -36,7 +36,9 @@ export default class TabPresenter {
|
|||
return tabId;
|
||||
}
|
||||
|
||||
async getByKeyword(keyword: string, excludePinned: boolean = false): Promise<Tab[]> {
|
||||
async getByKeyword(
|
||||
keyword: string, excludePinned: boolean = false,
|
||||
): Promise<Tab[]> {
|
||||
let tabs = await browser.tabs.query({ currentWindow: true });
|
||||
return tabs.filter((t) => {
|
||||
return t.url && t.url.toLowerCase().includes(keyword.toLowerCase()) ||
|
||||
|
|
Reference in a new issue